cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Impactful Individual
Impactful Individual

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

@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
MVP

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





manuelstgomes
Community Champion
Community Champion

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

Gorilla_8
Impactful Individual
Impactful Individual

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

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





Gorilla_8
Impactful Individual
Impactful Individual

I got this error @Jcook print_dountil2.png

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





Gorilla_8
Impactful Individual
Impactful Individual

@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.'.

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





Gorilla_8
Impactful Individual
Impactful Individual

false

 

print_dountil3.png

@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





Gorilla_8
Impactful Individual
Impactful Individual

print_doutil4.png

@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





Gorilla_8
Impactful Individual
Impactful Individual

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,791)