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 / SharePoint Person Type...
Power Apps
Answered

SharePoint Person Type column data not displaying properly

(0) ShareShare
ReportReport
Posted on by 138
Hi
 
I have a SharePoint which having Invoice details and drop down columns to display the Reviewers and Approvers based on the SharePoint Group created, Refer the below settings of Reviewer 1 column
 
 
 
 
In Cavas app a form created to display these invoices and select the Reviewer 1 based on the members part of the Group. But the column data is empty. Please guide me to display the members "Display Name : of this group.
 
 
 
 
Categories:
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at
    Yes - that does not work in Power Apps - the Items of the Combo Box need to be in this format
    Office365Groups.ListGroupMembers("YourGroupIdHere",{top:999}).value
     Also if you are going to persist with Modern Controls, you will need to add the displayName to the fields displayed.
  • schithambaran Profile Picture
    138 on at
    Hi WarrenBelz
     
    Good Day!!
    Thank you so much for the swift response. But receiving an error. Please assist.
     
    Office365Groups.ListGroupMembers failed: {
    "error": {
    "code": "Request_BadRequest",
    "message": "Invalid object identifier 'MEA ITK Supply Chain Memebers'.",
    "innerError": {
    "date": "2024-11-12T05:34:47",
    "request-id": "a0a51f02-6d02-4ba3-bec3-7b9824984af7",
    "client-request-id": "a0a51f02-6d02-4ba3-bec3-7b9824984af7"
    }
    }
    }
     
     
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at
    Have you added Office365Groups to your data sources and did you put your actual Group Id where indicated?
  • schithambaran Profile Picture
    138 on at
    Hi
     
    No errors are showing now. But no drop down menu with group members details.
    Please find below the screenshot depicting the below coding, Display name field and Office365 Group too.


    Appreciate your comments.
     
    best Regards
    Sanil
  • Verified answer
    WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at
    As I noted if you are going to persist with still in preview Modern Controls (I have not turned them on in any production apps presently), you need to add the fields you want to display from the Edit link in right panel. You will find that the code I supplied works fine on a Classic Combo Box. You are also going to have issues displaying the DefaultSelectedItems of the Combo Box
    {
       displayName: ThisItem.YourPersonField.DisplayName,
       mail: ThisItem.YourPersonField.Email
    }

    and the Update of your Data Card
    {
        Claims: "i:0#.f|membership|" & Lower(ComboBoxName.Selected.mail),
        Department: "",
        DisplayName: ComboBoxName.Selected.displayName,
        Email: ComboBoxName.Selected.mail,
        JobTitle: "",
        Picture: ""
    }


  • schithambaran Profile Picture
    138 on at
    Hi Warren
     
    Thank you so much, it worked for me as I used the Classic combo box. 
    I marked my query as Answered. However I need your help for the point raised at the beginning.
    I have created "MS Invoice Approvers", only those who can approve this invoice. Rest of the members can only review the invoice. 
     
     
     
     
    I choose the Approver field with the following settings, but the MS Invoice Approvers column shows the complete members list. Please suggest an option to restrict the members in this field.
     
     
     
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at
    Same story - that function is for SharePoint only. You can use exactly the same formula to get the members of the Office365 Group you need to create and then test for the user being in it (this will return true or false)
    With(
       {
          _Group: 
          Office365Groups.ListGroupMembers(
             "YourGroupIdHere",
             {top: 999}
          ).value
       },
       User().Email in _Group.mail
    )
     
  • schithambaran Profile Picture
    138 on at
    Hi Warren
     
    the below code will try and let you know soon.
    did these codes need to put under TEXT column ??
     
     
    Meantime I am facing an another issue ; Reviewer 1, Reviewer 2 & Approver names are not updating in the list once I click the update button before submitting for approval. 
     
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at
    Did you use the Update code I supplied earlier ?
  • schithambaran Profile Picture
    138 on at
    Hi Warren
     
    Good Day!!
    Reviewer 1 &2 is working fine. Now the current issue is related to Approver
     
    I tried to use the below coding in Update column, but sill showing the error.
     
     
    For your better understanding the Group name is MEA ITK supply Chain. In that group I have created an MS Invoice Approvers group whom will be the Approvers. 
    Any changes needed in the coding ??
     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard