web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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. 
 
 
I have the same question (0)
  • Verified answer
    jpespena Profile Picture
    335 on at
    Patching a Combo box with 2 fields
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard