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

Update Multi Value lookup with Collection

Hi All,

 

On my app (connected to SharePoint list) there is a lookup field called Customer, however this list is 7000+ items, so users select a Customer via a textinput and a gallery control on another screen. Items control of the Customer field is blank and the Update control of the Customer field is set to:

{Id: LookUp('Customer', Title = CustomerResults.Selected.Title, ID), Value: CustomerResults.Selected.Title}

 

This works perfectly.

 

I have the same lookup in another field but this is called Associate Customers and allows multiple lookup values. When the user searches for Customers and selects them from the gallery it populates a collection: SelectedAssociatedCustomers

 

I can get the items to show in the lookup field via DefaultSelectedItems: SelectedAssociatedCustomers.Value. If i were to submit this it wouldn't update the SharePoint list item, the field would remain blank, therefore, I need to set the Update control but i am unsure the syntax for this?

 

Please help if possible.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Update Multi Value lookup with Collection

Hi,

 

Make sure your multi-selection box has these properties (with your defaultSelectedItems in there):

image.png

And then your DataCard Update property is set to

SelectedAssociatedCustomersActualFieldBoxName.SelectedItems

 

Cheers,

ManCat




Don't forget to 'Mark as Solution' and 'Thumbs Up' those who deserve it!
1 REPLY 1
Super User
Super User

Re: Update Multi Value lookup with Collection

Hi,

 

Make sure your multi-selection box has these properties (with your defaultSelectedItems in there):

image.png

And then your DataCard Update property is set to

SelectedAssociatedCustomersActualFieldBoxName.SelectedItems

 

Cheers,

ManCat




Don't forget to 'Mark as Solution' and 'Thumbs Up' those who deserve it!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 122 members 4,570 guests
Please welcome our newest community members: