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 reco...
Power Apps
Answered

SharePoint Person record in Combobox

(0) ShareShare
ReportReport
Posted on by 185

Hi,

 

I have a SharePoint list with a Person column in it.

In my app I have a combobox control which displays the selected person.

I populate this by setting the DefaultSelectedItems property to:

{'odata.type':"#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser",
Claims:"i:0#.f|membership|" & Lower(recFNCR.'FNCR Initiator'.Email),
DisplayName:recFNCR.'FNCR Initiator'.DisplayName,
Email:recFNCR.'FNCR Initiator'.Email,
Department:recFNCR.'FNCR Initiator'.Department,
Title:recFNCR.'FNCR Initiator'.JobTitle,
Picture:""
}

Elsewhere in the app, I am setting the Visible property of a control  to:

If(cboReportedBy.Selected.Mail=_sUserMail,true,false)

where _sUserMail is set up when the app is loaded to store the logged in users email. This is so that certain controls are only visible if the logged in user is the user who created the record in the first place.

 

However, the cboReportedBy.Selected.Mail is blank. How do I save the email of the user in the Person record and the combo box control?

 

Any help, much appreciated.

 

Pete

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @petewalburn ,
    I have done just a simple modifiation in your formula (replaced Email with Mail) - 

     

    {'odata.type':"#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser",
    Claims:"i:0#.f|membership|" & Lower(recFNCR.'FNCR Initiator'.Email),
    DisplayName:recFNCR.'FNCR Initiator'.DisplayName,
    Mail:recFNCR.'FNCR Initiator'.Email,
    Department:recFNCR.'FNCR Initiator'.Department,
    Title:recFNCR.'FNCR Initiator'.JobTitle,
    Picture:""
    }

     

  • Verified answer
    petewalburn Profile Picture
    185 on at

    Hi,

     

    I have actually changed the DefaultSelectedItems of the control to:

    First(Office365Users.SearchUserV2({searchTerm:recFNCR.'FNCR Initiator'.Email}).value)

    and now everything seems to work fine.

     

    Pete

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard