SOLVED

Moving items from one list to another creates multiple entries

Copper Contributor

I setup a Flow that when a new list item is created, the flow creates a new item in the second list and copies the values from one to the next. The issue: if the new list entry has a column with multiple entries from a Choice column or a Managed Metadata column, it creates an entry for each variation.

 

Is there a way to concat the multiple selections into one string and paste them in the column? I tried creating variables outside the for each loops to consolidate the selections into one string, but was unsuccessful. This is the working Flow based on a Microsoft Template.

2 Replies
best response confirmed by dirkzwart (Copper Contributor)
Solution

Hi @dirkzwart,

 

Use an Array variable to store and format the Choice column lookup values.

 

Here is my sample Flow:

stormin_30_0-1603193756300.png

 

The "Append to array" variable is not an expression. It is simply the formatting required to pass it into the "Create item step".

stormin_30_1-1603193987951.png

{"Value":"@{items('Apply_to_each')?['Value']}"}
 

Let me know if that works for you.

 

I hope this helps.

 

Norm

 

@stormin_30 Thank you Norm! This works and is much easier to manage.

1 best response

Accepted Solutions
best response confirmed by dirkzwart (Copper Contributor)
Solution

Hi @dirkzwart,

 

Use an Array variable to store and format the Choice column lookup values.

 

Here is my sample Flow:

stormin_30_0-1603193756300.png

 

The "Append to array" variable is not an expression. It is simply the formatting required to pass it into the "Create item step".

stormin_30_1-1603193987951.png

{"Value":"@{items('Apply_to_each')?['Value']}"}
 

Let me know if that works for you.

 

I hope this helps.

 

Norm

 

View solution in original post