

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
How to retrieve PersonToGroup collection in a field?
Hello,
To process an automatize process, we want to retrieve all the groups to which a person is belonging.
For that I was thinking that a simple rule like will return the collection:
Set Field to ${entity.RequestedByPerson.PersonToGroup}
But this is not the case, I have only the last value of the collection.
Do you have any idea to retrieve the full collection?
Thanks in advance for your help.
Best regards.
Bertrand

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How to retrieve PersonToGroup collection in a field?
Hi There
Not sure if its possible in tool, maybe someone knows how to loop through it.
What is your use case and what are you aiming to achieve, if you have Operations Orchestration or similar tool, you can get the data via API, do the loops and get the data you need, and post it back into a field
Ciao


- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How to retrieve PersonToGroup collection in a field?
Hi,
For me it works with the groups ID. Tested on an Incident with the Owner field.
${entity.OwnedByPerson.PersonToGroup.Id}
In the comments it prints all the IDs of the groups my user belongs to.
BR,
Svilen