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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Select won't move unde...
Power Automate
Unanswered

Select won't move underneath the next action

(0) ShareShare
ReportReport
Posted on by 581

I've a Select in a Apply To Each.

 

I need to add an action before it, I can't add the new action before the Select so I'm creating it underneath and then going to move the Select.

 

When I try this I get the error "The action cannot be dragged into foreach as action outside foreach depends on it"

 

All I'm doing is moving the Select to a different place in the same Apply To Each - why am I getting this error?

 

 

 

Categories:
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @lee-martin  can you share screenshot of your flow where you are facing this issue. Usually this error occurs when action you are moving, its output is used in some other action, and that dependent action needs to be after select action.

  • Lee-Martin Profile Picture
    581 on at

    @annajhaveri 

     

    There is only the Select in the Apply To Each, I'm not moving it outside the Apply To Each, just adding something new, and then trying to move the Select after it.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @lee-martin  could you please share screenshot of apply to each from your flow with the actions expanded inside the apply to each?

  • Lee-Martin Profile Picture
    581 on at

    @annajhaveri  I could, but it's on a different laptop will try and get a copy.

     

    It's exactly as I describe however...

  • Lee-Martin Profile Picture
    581 on at

    @annajhaveri  Finally been able to get this

     

    As you can see, there is a select in an apply to each. I wish to add a set variable above this. I cannot do this, so I add it underneath and then try to move the Select underneath, and I get the error I described.

     

    leemartin_0-1670926403287.png

     

  • Lee-Martin Profile Picture
    581 on at

    And this is the error when I try to move it below a set variable I added 

     

     

    Capture.PNG
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @lee-martin  It should work the way you described, are you using output of select action in the Set Variable? 

  • Lee-Martin Profile Picture
    581 on at

    @annajhaveri 

     

    No, there is no dynamic content yet in there. The idea is for the variable to come before as one of the values in the Select needs to change where it comes from (there are several email fields, and we need to specify which specific ones to use).

     

    The action is convinced that I'm trying to move it into the for/each when I just try and move it within the same for/each

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @lee-martin  Trying adding Compose action below Set Variable, and then try moving Select action above Compose action, just to give a try if that works?

  • Lee-Martin Profile Picture
    581 on at

    @annajhaveri Still not working

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard