web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Help with 'apply to each' setting

(0) ShareShare
ReportReport
Posted on by

 

Hi all, 

 

I have a flow that when an item in sharepoint list A is created and has a conditional value of 'Archive?' set as True, the flow will create a new item on a secondary archive list B, copy all the values from the item in list A and create them in list B (essentially copying and pasting one to the other). Once the list B item is created the next step is to send an email notification, and then delete the item from list A. 

 

Some of the values in list A are multiple choice fields (such as location, or clause), I had previously set the flow to list all these multiple choice fields individually (see below) but the new item in list B would only display whichever location(s) that were in the item in list A (which is the behaviour that I want).

 

location.PNG

 

So far so good. This was observed to be working corrrectly for a while, however recently (I assume my workplace has pushed out an update to shrepoint or o365) whenever an item in list A is archived (and thus recreated on list B) all the possible locations are showing, not just the one selected on the list A item.

 

That's half the problem, I can remedy the above myself quite easily if I only want one location showing by changing the colomn settings to amend location from tickbox to dropdown. I don't want that however as I need multiple choice.

 

So, the second part to this is when I edit the flow from listing the individual locations to just having the location value in 'location value 1' field it creates an 'apply to each' automatically (this never happened previously, hence my assumption that an update has been pushed out). The consequence of this is that it allows for multiple locations, however it also creates mulitple entries (duplicates) on list B, one for each location.

 

location 2.PNG  

As you can imagine, with having multiple locations, and also multiple other variables (such as ISO clauses) we need to list, it's unmanageable.

 

Hope the above made sense, any help greatly appreciated.

I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: Help with 'apply to each' setting

    Hi @KrisMB,

     

    Please refer to this blog firstly:

    https://veenstra.me.uk/2019/04/01/microsoft-flow-update-a-multi-select-choice-field-in-a-sharepoint-list/

    You could create a Array variable to store these location values by the method provided as above, then put it into the location value.

     

    If you have problem during creating, you can contact us.

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard