cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
illmatic
Helper IV
Helper IV

SharePoint LookUp Column Does Not Save

I searched around on the forums first, but couldn't make sense of the answers provided to similar questions.  I have a SharePoint list that has a corresponding PowerApps form that submits data to said list.  In the SP list, I have a LookUp Column called "Programs" to a list entitled: 'Offices.'   This field, "Programs", will not save data back to the list upon submitting the PowerApps form even though it works as intended in the PowerApps form itself.

Here are some details regarding the PowerApps options for my Programs field:
   - It is NOT a multiselect field.

  -  The Items Property: 

 

Filter(Choices[@SPList].Programs), DataCardValue1.SearchText in Value)

 

 


I understand that you typically have to use the Patch function instead of SubmitForm for a LookUp field with multiselect... but how do you save a field with just one value?

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@illmatic 

Change your Update property to DataCardValue1.Selected

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@illmatic 

No...please do not opt for the Patch function.  The SubmitForm is far superior and the Form is perfectly capable of submitting what you want - in every situation (single and multi selects) .

 

If you column is a Lookup, then you need to submit a record with two columns, the Id and the Value.

However, since you mention that the Items property of your Combobox is based on Choices, this means that the selected record of the combobox will have the proper signature to submit.

 

So, there needs to be some more details:

1) What is your Update property of the datacard?

2) How is your column defined in SharePoint?  As in, is IT set to allow multiple selections?

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi @RandyHayes 

 

Thanks for your feedback!  Here are the details you asked for:
1.)  The Update Property is set to DataCardValue1.SelectedItems

2.) The column is a lookup field to an 'Offices' list; it does not allow multiple selections.

RandyHayes
Super User
Super User

@illmatic 

Change your Update property to DataCardValue1.Selected

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,530)