Skip to main content

Notifications

Power Automate - Using Flows
Answered

Apply to each - Search for Users doesnt end

(0) ShareShare
ReportReport
Posted on by

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 

  • Re: Apply to each - Search for Users doesnt end

    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

  • v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Apply to each - Search for Users doesnt end

    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

  • Re: Apply to each - Search for Users doesnt end

    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

  • Verified answer
    JohnAageAnderse Profile Picture
    JohnAageAnderse 1,986 on at
    Re: Apply to each - Search for Users doesnt end

    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

  • Re: Apply to each - Search for Users doesnt end
    No they have not received the email yet
  • JohnAageAnderse Profile Picture
    JohnAageAnderse 1,986 on at
    Re: Apply to each - Search for Users doesnt end

    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?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard

Featured topics

Restore a deleted flow