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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow running successfu...
Power Automate
Answered

Flow running successfully without stopping for 'Start and Wait for an Approval'

(0) ShareShare
ReportReport
Posted on by 108

Can anyone help as to why my flow would be running all the way to the end saying successfully (but not successful) and seemingly bypassing 'Start and Wait for an Approval' action which becomes greyed out after flow has run?

 

This has me totally confused as I copied the same flow from another that behaves as expected and doesn't bypass 'Start and Wait for an Approval' action? 

 

UluruRob_0-1634535197815.png

 

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    What collection are you running apply to each on? Do you have collection that has data?

     

    Also, You have added your approval action under apply to each. This means, for every record, this flow will run. As soon as it runs for the first record, it will wait for approver to take action.  Are you sure, you are expecting this behavior?

     

  • UluruRob Profile Picture
    108 on at

    @PrasadAthalye Thanks - I am not sure what you mean by 'What collection are you running apply to each on?' do you mean the Output? if yes it is a field from an external form to add an attachment to the approval notification and this is what forced the Approval action into an apply to each. I am confused by why the exact same flow works for another flow that's using the same form (with different name) as the trigger.

     

     

    UluruRob_0-1634586566053.png

     

    UluruRob_1-1634586589781.png

     

  • PrasadAthalye Profile Picture
    on at

    Can you check if your attachment output has data ? There are only 2 possibilities...

     

    • Either your attachment output is empty
    • OR it has more than 1 Row and an approval card is pending for approval. Please check Pending approval

     

  • UluruRob Profile Picture
    108 on at

    OK so looks like the Attachment Output is empty- There isn't always going to be an attachment when a form is submitted, but when there is it needs to be included, how do we work around that please?

  • UluruRob Profile Picture
    108 on at

    @PrasadAthalye I have also tried all day to add a condition before the approval action to determine if a file is attached or not, every time there is no file the flow just ignores everything, if there is a file it works. I am stumped.

  • PrasadAthalye Profile Picture
    on at

    When there will be an attachment, It will enter the loop. What is the requirement? Do you want to start approval irrespective of there is an attachment or not? If yes, then you can not run the flow on attachment collection.

     

    Can you clarify requirement and upload entire picture of the flow?

     

  • UluruRob Profile Picture
    108 on at

    @PrasadAthalye Correct Approval should start irrespective of attachment or not - The whole workflow is to approve employees leave, so sometimes there will be attachments to support there request and other times not, this seems to me that this would be a part of a normal approval process.

     

    I have attached the whole flow for your reference as requested - thanks for you assistance so far.

     

     

    Approval Flow.jpg

  • Verified answer
    PrasadAthalye Profile Picture
    on at

    Thank you. I see that your trigger is when a new entry is created using cognito forms. You should not wrap your approval under Attachment loop. Rather you should build attachment array variable using that foreach loop and then supply that array to approval action. All the actions that are inside attachment loop right now should be outside that loop. Refer following link that shows how to build attachment array...

    https://docs.microsoft.com/en-us/microsoft-365/community/power-automate-send-sharepoint-files-as-attachments

     

  • UluruRob Profile Picture
    108 on at

    @PrasadAthalye Thankyou so much this has done the trick and the flow is working successfully irrespective of attachment, appreciate your persistence and patience.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard