cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
simkessy
Level: Powered On

How do you update a Multi Lookup Column Dynamically

I have a SharePoint list with a Lookup column to another list. This lookup list allows multi-select.

 

My app has a combobox with the datasource being the lookup list. 

 

I want to save/patch the results of the combobox into the lookup field. 

 

Is this possible?

1 REPLY 1
Dual Super User
Dual Super User

Re: How do you update a Multi Lookup Column Dynamically

Hi @simkessy 

 

Does your app have independent controls or is it inside an Edit form?
 
If it is inside the Edit Form, you need to modify the Update property of the DataCard to Combobox1.SelectedItems and when you submit the form using SubmitForm(), this will directly get updated.
 
If you have independent controls, you can use Patch command to either update an exisiting value or create a new one:
 
New: Patch(SpList,Defaults(SPList),{LookupFieldName:Combobox1.SelectedItems})
Existing: Patch(SpList,Name="Test",{LookupFieldName:Combobox1.SelectedItems})
 
Please replace the names used here with your actual values. If you want more specific detail, please share a screenshot so that we can help you better.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,453)