Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Super Contributor.. Bertrand170177 Super Contributor..
Super Contributor..

How to retrieve PersonToGroup collection in a field?



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.

2 Replies
Mario Morelli Acclaimed Contributor.
Acclaimed Contributor.

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



Trusted Contributor.. Svilen Ivanov Trusted Contributor..
Trusted Contributor..

Re: How to retrieve PersonToGroup collection in a field?


For me it works with the groups ID. Tested on an Incident with the Owner field.


In the comments it prints all the IDs of the groups my user belongs to.




The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.