cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Memorable Member
Memorable Member

DO UNTIL IS NOT WORKING CORRECTLY

SOMEONE KNOW WHY HE CAN'T STOP THE "DO UNTIL". 

 

HOWEVER OPTION THE APPROVAL CLICKS THE "DO UNTIL" DONT GO TO THE NEXT STEP.

 

SEE THE PRINT: 

 

print_flow_do_until.png

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
Most Valuable Professional
Most Valuable Professional

@Gorilla_8 

 

Could you add a Compose action before the condition and put the dynamic content Outcome. Than run the flow and see what is inside the Compose.

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

15 REPLIES 15
Jcook
Most Valuable Professional
Most Valuable Professional

Hello,

Can you try using Outcome instead of Responses in the do until.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Hi @Gorilla_8 

 

@Jcook answer is correct, but be aware that, if you have multiple people, the "Outcome" will concatenate the answers. For example, "Accepted, Rejected," so, if this is the case, you need to parse the string to see if there are only accepted before going forward. 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

I try to use "Outcome" and he didn't make an loop on "do until"

Hi @Gorilla_8 

 

I would recommend a different approach. Make the process trigger with an HTTP Post and, each time it's rejected simply have the Flow to call it itself by doing an HTTP post. Then you can have a cycle and have the flow finish cleanly.

 

You can use a Child Flow:

https://manueltgomes.com/microsoft/flow/flow-run-child-flow/

 

Or using it as a web service.

https://manueltgomes.com/microsoft/flow/using-flow-as-a-web-service/

 

I use it all the time and it works like a charm.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

I understand how do until works, but i need to send an email if the response is equal to "Aceitar", how I do that?

 

print_dountil.png

Jcook
Most Valuable Professional
Most Valuable Professional

Hi @Gorilla_8 ,

 

Try putting Outcome in the If condition.

 

Thanks

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





I got this error @Jcook print_dountil2.png

Jcook
Most Valuable Professional
Most Valuable Professional

Hi @Gorilla_8 

In the second picture the error is coming from the send email.

 

Could you click that action to get the error details and post it.

Thanks

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@Jcook 

 

 

InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '1' and column '2801': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365']['connectionId']' cannot be evaluated because property 'shared_office365' doesn't exist, available properties are 'shared_sharepointonline, shared_approvals'. Please see https://aka.ms/logicexpressions for usage details.'.

Jcook
Most Valuable Professional
Most Valuable Professional

Hi @Gorilla_8 

This seems to me like a bug that can happen sometimes.

 

Try removing the failed Send Email action and re add.

 

Thanks

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





false

 

print_dountil3.png

Jcook
Most Valuable Professional
Most Valuable Professional

@Gorilla_8 

 

Could you add a Compose action before the condition and put the dynamic content Outcome. Than run the flow and see what is inside the Compose.

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





print_doutil4.png

Jcook
Most Valuable Professional
Most Valuable Professional

@Gorilla_8 

This seems to be a Connection error.

 

Have you tried creating a new Connection for the Send Email action?

This can be done by clikcing on the Action and selecting the email at bottom of the action and than click create new

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





I try it, I will open a new post. 

Thanks for the help on this one.

 

LINK: https://powerusers.microsoft.com/t5/General-Power-Automate/ERROR-ON-EMAIL-quot-DO-UNTIL-quot-SOMEONE...

Helpful resources

Announcements

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,517)