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 / Apply to each - Search...
Power Automate
Answered

Apply to each - Search for Users doesnt end

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I am creating a simple flow for a leave request on a sharepoint list. One of the columns is a single line of text that users enter a users full name using a drop down that is populated via PowerApps.

 

The first step of the flow is to search for this user in o365 which works fine however the next step is to send an approval email. 

 

This email will be sent to this person and the output shows that the user has an email listed however when I select <Get user>- Email It adds an Apply to Each. At this step the flow stops and doesnt error or fail just stops dead in its tracks has anyone seen this issue before? When i cancel the flow i can see that the search for users has returned the user in question with an email.

 

If anyone can help that would be great.Flow.JPGOutput.JPG 

Categories:
I have the same question (0)
  • JohnAageAnderse Profile Picture
    1,986 on at

    As far as I understand, it is not your For each step that fails - it is the Start for approval that is waiting and waiting. Did the person you got in the Get Directory step receive an e-mail that approval is requested?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    No they have not received the email yet
  • Verified answer
    JohnAageAnderse Profile Picture
    1,986 on at

    I just tested myself - the approval e-mail is received shortly after the flow runs! So something is wrong with your flow!

     FlowApprovalStep.png

     

    Above is my approval step setup, Value contains an e-mail address  - try to just add your own e-mail address at first to test that the approval is sent to you. This may give you an idea of whether or not that part works.

    Kind regards, John

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I dont know what you've done but ive kicked the flow off again and it works a treat the email goes through perfectly fine and everything works a treat. I have no clue why it was failing beforehand as I really have not changed anything. Thankyou very much for your help.

     

    Kind Regards Damien

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Do you solve your problem?

     

    I have made a test on my side and don't have the issue that you mentioned. Please check if you have filled proper value within "Start an approval" action.

     

    In addition, please check if the approver has made a response ("Approve" or "Reject") to your approval request, if the approver doesn't make a response to your Approval Request continuously, the "Start an approval" action would be running continuously until the "Start an approval" action time out.

     

    More details about the approval flow, please check the following article:

    https://docs.microsoft.com/en-us/flow/modern-approvals

     

    If you have any other question about Microsoft Flow, please feel free to reply me here.

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Kris, 

     

    Yes i solved the problem, i believe it was the approval/rejection step that it was failing at. It was a bit hard to see from the UI of flow as the timer stays on the loop step rather then the approval. I rebuilt the flow from the ground up with almost nothing different and it works perfectly fine. 

     

    Thankyou for your reply

     

    Regards

     

    Damien Bryan

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard