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 / Update Form with Combo...
Power Apps
Answered

Update Form with ComboBox pointing to another list

(0) ShareShare
ReportReport
Posted on by 24

I was having difficulty getting a form to update a SharePoint List when I use a ComboBox that point to another SharePoint List and am curious why the update value of the datacard needed to be so specific.

 

I have a list of companies (my_companies) with a lookup field to the best point of contact (‘Best POC’) in another list (my_contacts.)

When I use the default edit form ‘Best POC’ card, updates work:

  • Form1.DataSource: my_companies
  • Form1 Item: First(my_companies)

 

  • POC_DataCard Update: POC_ComboBox.Selected
  • POC_DataCard Default: ThisItem.'Best POC'

 

  • POC_ComboBox Items: Choices([@my_companies].bestpoc0)
  • POC_ComboBox DisplayFields: ["Value"]
  • POC_ComboBox SearchFields: ["Value"]

 

  • SubmitButton OnSelect: SubmitForm(Form1)

Once it’s working, I want to be able to show multiple fields when the user views a selection in the POC ComboBox, so I change the ComboBox to use the contacts list directly instead of using Choices:

  • POC_DataCard Default: LookUp(my_contacts, ID=ThisItem.’Best POC'.Id)

 

  • POC_ComboBox Items: my_contacts
  • POC_ComboBox DisplayFields: ["Title"]  - (will add other fields once it works)
  • POC_ComboBox SearchFields ["Title"]

 

 I have tried the following values for the POC_DataCard Update value (the first two fail to update the my_companies list):

  1. POC_ComboBox.Selected    - same as original card
  2. LookUp(my_contacts, ID=POC_ComboBox.Selected.ID)
  3. {

'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",

Id:Text(POC_ComboBox.Selected.ID,"[$-en-US]0"),

Value: POC_ComboBox.Selected.Title

}

 

Option 3 works (thanks to this answer), and can be reduced to:

{

Id:POC_ComboBox.Selected.ID,  - note lower case ‘d’, a capital ‘D’ will fail

Value: POC_ComboBox.Selected.Title

}

I am curious why options 1 and 2 fail… they seem like they would return the same (although expanded) record.

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @eyecantell,

     

    The Form Update expects the .Selected record to be of the same data structure. A LookUp column within SP expects the values Id and Value as valid column names for that record. These are also the only column available when using the Choices() approach as the Items property.

     

    Option 1 -> The column structure no longer matches because .Selected returns all column values of that list (LookUp as default property)

    Option 2 -> Similar issue to option 1 but now the LookUp is directly added to the Update property

    Option 3 -> The correct column structure has been created

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • eyecantell Profile Picture
    24 on at

    Thanks @LaurensM!

     

    I have also noticed that sometimes the combobox will flip from the new selection to the old value and back to the new one when saving. Any thoughts there?

  • LaurensM Profile Picture
    12,516 Moderator on at

    Did you, in addition to the default property being a LookUp to the list, also change the items property of the dropdown from the Choices() to a reference of your list? Should it still be linked to the Choices() value, that could be causing the issue I assume.

     

    When changing to a direct reference of that List, you may need to adjust the column which is displayed. (See right property panel)

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard