cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PiotrJaniszewsk
Frequent Visitor

patching multiselect lookup field

Hello,

 

I have two collections: A and B. I want for every rows in collection A to add a new item (first row of collection B) to multiselect lookup field of collection A. The item which i want to add to every rows of collection A is first row of Collection B (collection B has only one row).

 

I have no success with adding another item to multiselect lookup field. I tried something like this:

 

ForAll(A;Patch(A;MSLF: First(B)))

 

*MSLF is multiselect lookup field

1 REPLY 1
gabibalaban
Super User
Super User

Hi @PiotrJaniszewsk ,

 

Is there a problem to use an aditional collection called C ? 

ClearCollect (C,AddColumns(DropColumns(A,"MSLF"),"MSLF",First(B)));

And then to move the data to collection A (but you have to be sure that your MSLF column in A collection have the same structure as B column):

ClearCollect (A,C)

 

Hope it helps !

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,802)