Unable to read "many"-datafield in Services

Hello,
I’m trying to send a mail to “Person”, but it can’t read the data in that field. In the debugger I can see that it only says Object, and not the ID of the actual object. This datafield has cardinality many, and all the fields that are not “many” works fine so that’s probably the reason. I have done the same in a normal app, and that works perfectly, which means that there must be an issue with “many”-data in services. Is there any workarounds except changing the cardinality?

image

Hi Tobias, and welcome to the Community!

Have you tried reading to a new cardinality many data source of type Person, and read objects into this data source with the filter ID Exists in/Is Any Of otherDataSource.Person (the field which is cardinality many), and then using this new data source to send the emails?

In the meantime, could you share a bit more about the setup of the object class and the send email action node, so we can investigate further on our end?

Rhys

Ok, I tried reading it into another temporary datasource, but that object only contains an ID, with no other data. So I guess the problem persists.

The action node is just a simple Send Email action, where it tries to send to either “Person.User.Email” or “Person.Email(unauthenticated)”. However, this is irrelevant as the actual data is missing regardless of the action node running or not.

I don’t know which parts of the object class is relevant either. The class has a “sender”-person which is cardinality one. The service is able to read this field, so sending a mail to this Person is not a problem. The one I want to send to has cardinality many, and when I run the service it just can’t read these fields. Here is the Person in the data model at least:

If there is any other specific info/screenshots you want I’ll send it over:)

Thanks for your answer!

Hi,

I have been able to read data to the additional data source using this setup below:

These additional fields are populated in the Person (iteration) data source as expected.

Could it be that the objects are empty, and don’t have any values on any of the other properties?

Rhys

Ah I didn’t realize there would be a difference between reading to Person from other vs. reading with a filter.

When I did it like you did here it worked completely fine!
Thank you:)

1 Like