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 / Patching a Combo box w...
Power Apps
Answered

Patching a Combo box with 2 fields

(1) ShareShare
ReportReport
Posted on by 10
Hi All,
 
I have something that I'm stumped by.
 
I have a Combobox that shows 2 fields (a surname and a first name, which are based on 2 lookup fields in Sharepoint).  Is there any way to Patch or otherwise submit the choice made in the combobox to 2 Sharepoint Lookup Fields?
 
 
 
//Code getting an error, obviously
Patch('SharePoint List Name',Defaults('SharePoint List Name'),{LUSurname:ComboBox1.SelectedItems})
 
 
So, for example, I pick an item from the Combobox that is "Surname Field: Smith" and "First Name Field: John". How do I separate these so that when somebody selects "Smith, John" in the combo box, the Sharepoint list's Surname lookup patches to "Smith" and the First name lookup patches to "John"?
 
Apologies if this is unclear in any way, happy to answer any follow-ups. 
 
 
Categories:
  • Verified answer
    jpespena Profile Picture
    335 on at
    Hi,
     
    Update the Items property of the combobox to:
     
    AddColumns('DataSource', CustomName, $"{LastName}, {FirstName}")
     
    Then change the Value property dropdown in the properties to CustomName.

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard