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 / Run Subflow based on t...
Power Automate
Answered

Run Subflow based on the retry value

(0) ShareShare
ReportReport
Posted on by 54

How to create retry exception flow for login into website using Id & Password using chrome . Each action has max retry 3 so it should perform the same action like relaunch chrome login into website populate username and password if any error occurs for 3 times but at 4 time it should capture the error screenshot and send an email to stakeholders.

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @preettyy_312024 ,

     

    You need to create the subflow as below shown in image.

     

    You need to you Onblock error ,inside the onblock error you need to do all the activities related to browser login and onblock error advance setting you need to set is as if it fails it need to go to end of the block.

    VishnuReddy1997_0-1717586358084.png

     

    Once it reaches End of the Onblock error,you need to set up the error handling like this. In retry variable you can be it as 3.If the runs are less than 3 it will close the browser and do the same process again and if it is more than 3 it will run the System exception mail subflow. 

    VishnuReddy1997_1-1717586554348.png

     

    The system exception email subflow will capture the Screenshot and send an email to respective spocs.

    VishnuReddy1997_2-1717586716540.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

     

  • Verified answer
    Preethi Ambati Profile Picture
    54 on at

    Hii,

     

    Thanks for the solution. It's working.

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @preettyy_312024 ,

     

    Great!

    Please mark my answer as a solution so it will help others in future.

     

    Regards,

    Vishnu Reddy

  • Preethi Ambati Profile Picture
    54 on at

    But after login there is another subflow which needs to be run. where should I call that subflow.

  • Preethi Ambati Profile Picture
    54 on at

    After login functionality there is another subflow which is used for further process if there is an error in that subflow then it should directly send email with screen shot instead for relaunch functionality so where should I call that subflow. If I call in the onblock of the login functionality it is performing the activity of relaunch and if I call it after the if functionality then after 1st relaunch it is not calling that subflow which is wrong. 

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @preettyy_312024 ,

     

    You need to create one more subflow and you need to create the flow as shown in below images.You need to create that another process and call that subflow in main flow.

    VishnuReddy1997_0-1717648538240.png

     

    VishnuReddy1997_1-1717648575562.png

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • Preethi Ambati Profile Picture
    54 on at

    Thanks for your solution. I have applied some other logic and it's 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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard