Community
Showing results for 
Search instead for 
Do you mean 
Reply

Retrieving All Direct and Indirect Sub Groups for a given Group

Tuned Listener
Posts: 7
Country: United Kingdom

Retrieving All Direct and Indirect Sub Groups for a given Group

I am trying to retrieve all sub groups (direct and indirect) for a given Group, however the GetSubGroups method of the GroupManager class only retrieves direct sub groups for a given group.

 

Is there a way to retrieve all groups and sub groups for a given parent group?

 

Keen to hear from anyone who has come across this issue and possible solution?

Employee
Posts: 1,163
Country: USA

Re: Retrieving All Direct and Indirect Sub Groups for a given Group

There's no straightforward method for retrieving and direct and indirect subgroups for a given group.

 

You can test a group/subgroup if it has subs and loop through the subgroups of the original group to eventually drill down and get them all, this isn't very elegant though. This would certainly be helpful functionality to have, I'll submit a feature request for it.

Matthew Wood
Act! SDK Support
Community Moderator
Tuned Listener
Posts: 7
Country: United Kingdom

Re: Retrieving All Direct and Indirect Sub Groups for a given Group

Hi Mathew,

 

Thanks for your reply.

 

I have implemented a solution for now however it will be fantastic if this is something that is available through the SDK.

 

Thanks for submitting this feature request.

 

-Pranay