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?
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?
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: