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 / Combo box not writing ...
Power Apps
Answered

Combo box not writing foreign key to sharepoint list when submitted

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In a new form there is a combo box. The items field of the combo box references the parent table and displays a text field. The data card references the foreign key field in the child table. The update property of the data card is set to "ComboBox.Selected". No errors are shown in any properties. When submitting the form, it does not write the primary key of the parent table to the child table's foreign key field.

 

PLEASE HELP!!!

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    I assume you are working with a Lookup column?  

    If so, try changing your Update property to the following formula:

    {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: ComboBox.Selected.ID,
    Value: ComboBox.Selected.Value
    }

    Also, depending on how you set up your lookup column, the .Value above might need to change to whatever you have as the primary display value for the column in SharePoint.

     

    If the assumption above is not correct, post back with more detail.

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks so much. I've been working on this for many hours. FYI, the "ComboBox.Selected.Value" had an error. I removed it, submitted the form, and it worked perfectly. You're the man!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Excellent!

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 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard