Hi,
I want to be able to list the groups in my contact list in Powerapps.
For example I have a group "ABC" with the the following contacts in that group:
etc.
When I use Office365Outlook.ContactGetItemsV2() I will get all items in my contact list and have no idea which ones are only in the group "ABC". In the end I want to select only a group and then send an email to all members of that group, rather than selecting all individuals members of that group.
Any ideas how to get groups listed within the ContactItems?
Thanks,
Bart
Solved! Go to Solution.
Hi @xecho ,
Could you tell me:
Did you have a contact list in outlook? And did you add the list to the contact folder? Did you want to get the contact list in the contact folder?
If so, at my knowldege, there is no api (graph api) to get the contact list and users in it.
If you just want to get the users in each contact folder, you could first use Office365Outlook.ContactGetTablesV2() to get the Ids of all folders and then use Office365Outlook.ContactGetItemsV2() to get the users in a folder.
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
Hi @xecho ,
Could you tell me:
Did you have a contact list in outlook? And did you add the list to the contact folder? Did you want to get the contact list in the contact folder?
If so, at my knowldege, there is no api (graph api) to get the contact list and users in it.
If you just want to get the users in each contact folder, you could first use Office365Outlook.ContactGetTablesV2() to get the Ids of all folders and then use Office365Outlook.ContactGetItemsV2() to get the users in a folder.
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
Hi @xecho
In This example, getting all the members in the "development" Group
ClearCollect(
AllADGroup,
AddColumns(
Distinct(
GroupIDs,
Value
),
"GroupName",
AzureAD.GetGroup(Result).displayName
)
);
Clear(MembersInDevelopmentGroup);
ForAll(
AllADGroup,
If(
GroupName = "Development",
Collect(
MembersInDevelopmentGroup,
Office365Groups.ListGroupMembers(Result).value
)
)
);
Note: AzureAD and Office365Groups connectors used
Thanks, I will try that.
User | Count |
---|---|
172 | |
95 | |
74 | |
72 | |
58 |
User | Count |
---|---|
215 | |
165 | |
95 | |
93 | |
74 |