web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Outlook contact group ...
Power Apps
Answered

Outlook contact group powerapps

(0) ShareShare
ReportReport
Posted on by 102

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:

1@a.com

2@a.com

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

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    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?

    vxiaochenmsft_0-1628743747918.png

    vxiaochenmsft_1-1628743770920.png

     

    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.

     

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @xecho 

     

    In This example, getting all the members in the "development" Group

    • Get all Group
    • Get Members for that 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

  • xecho Profile Picture
    102 on at

    Thanks, I will try that.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard