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 List Form: ...
Power Apps
Answered

SharePoint List Form: Using Patch to Save Person Columns

(0) ShareShare
ReportReport
Posted on by 765 Super User 2024 Season 1

I am using Patch to save records to a SharePoint list.  One of the controls on my form is a Combo Box, cmbOther, that is linked to a multi select Person column in the SharePoint list.

I create the record to be saved as follows:

 

 UpdateContext(
 {
 serviceRequestRecord: {
 Application: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: gblAppID,
 Value: gblAppName
 },
 Request_x0020_Type: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: cmbRequestType.Selected.Id,
 Value: cmbRequestType.Selected.Value
 },
 Title: locRequestDescription,
 Status: {Value: cmbStatus.Selected.Value}
 }
 }
 )
 

 

I have to add to this record the selected users from  cmbOther Combo Box.

How do I do that? It is not as simple as:

 

Other: cmbOther.SelectedItems

 

Any help would be appreciated.

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @sperry1625 

    Well, it depends - it can be that easy but it would be highly dependent on the Items property of the combobox.  If you have it set to the Choices of your person column, then it can be just that easy.

    If not, then you will need to implement a ForAll on the selected items to convert the selected items to valid Person records in order to set your column.

     

    I hope this is helpful for you.

  • sperry1625 Profile Picture
    765 Super User 2024 Season 1 on at

    You were right, it was that simple. When I originally tried it I had an error that I didn't see.

     

    Thanks.

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard