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 / Patch a gallery Person...
Power Apps
Answered

Patch a gallery Person combo box to SharePoint using OnChange Function

(0) ShareShare
ReportReport
Posted on by 38

I have a combo box used as a People Picker within a gallery.  I'm trying to patch the person selected to a Person/Group column on a SharePoint list using the OnChange function.  My formula is: 

 

Patch(colMetricInformation, ThisItem, {'Person Name': Self.Selected.DisplayName}) 

 

However, I receive this error:  "The type of this argument 'PersonName' does not match the expected type 'Table'. Found type 'Text'.

 

How do I overcome this error?  Thanks!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    Hi @jselman ,

    You should only need this

    Patch(
     colMetricInformation, 
     ThisItem, 
     {'Person Name': Self.Selected}
    ) 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • jselman Profile Picture
    38 on at

    Hello and thanks for your response.  I get a different error when I change the formula to your suggestion.  "The type of this argument 'PersonName' does not match the expected type 'Table'. Found type 'Record'. It was "text", now it's "record".  Any ideas?

  • jselman Profile Picture
    38 on at

    Good morning, again.  I turned off the "allow multiple selections" function in the SharePoint column and your solution works fine now.  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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard