Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Person field showing blank in View & Edit modes

Like (1) ShareShare
ReportReport
Posted on 4 Oct 2024 21:30:06 by 76
Hi all, I've got a person field in my Power App form which is associated with a SharePoint list people picker field.  This field is limited to users in an Azure security group.
 
So the Items property of this person field is set to:
 
Office365Groups.ListGroupMembers("x965e66a-95ea-4e90-90a1-fbbf35e360ce",{'$top:3':3}).value
This allows only those users to appear in the dropdown.
 
I had to also change the DataCard's Update property to the following in order to get it to Save.  DataCardValue26 is the person field.
 
{
'@odata.type': "#Micosoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & DataCardValue26.Selected.mail,
DisplayName: DataCardValue26.Selected.displayName,
Email: DataCardValue26.Selected.mail
}
 
The form is Saving correctly back to the SharePoint list, but when in View or Edit mode the value isn't there. It's empty.  I'm sure I'm missing something on the DefaultSelectedItems property maybe but I don't know what that is.  Currently the DefaultSelectedItems property is still set to: Parent.Default.
 
Thank you for your help!
 
Categories:
  • Verified answer
    gsr51 Profile Picture
    gsr51 76 on 07 Oct 2024 at 15:43:31
    Person field showing blank in View & Edit modes

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,367

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,297

Leaderboard
Loading started