cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vish_p
Level 8

Getting approval response from switch case which got executed

Hey All,

 

I am creating a approval flow,so when a user submits a response on ms form a switch case is executed in the flow and based upon the condition appropriate case (which is an approval mail) will get executed,now the issue is i need the response of the approval mail from the case which got executed to put in the next action ,how to do it please help !!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Getting approval response from switch case which got executed

Hi @vish_p,

 

Could you please share a screenshot of your flow's configuration?

Where do you add your next action after the switch case action?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a "When a new response is submitted" trigger.
  • Add a "Apply to each", Input parameter set to output of the trigger.
  • Within "Apply to each", add a "Get response details" action, specify Form Id, Response Id field set to Response Id dynamic content of the trigger.

Add a "Switch case" action, On field set to a specific dynamic content of "Get response details" action.

 

  • Within Case branch, add a "Send approval email" action.

Image reference:11.JPG

I assume that the Case 2 branch would get executed, if you want to get the response of the approval mail, you could add the next action as below (add your next action within Case 2 branch):12.JPG

Or you could add your next action under Switch case action (Within "Apply to each" action😞

 

13.JPG

 

Best regards,

Kris 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Getting approval response from switch case which got executed

Hi @vish_p,

 

Could you please share a screenshot of your flow's configuration?

Where do you add your next action after the switch case action?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a "When a new response is submitted" trigger.
  • Add a "Apply to each", Input parameter set to output of the trigger.
  • Within "Apply to each", add a "Get response details" action, specify Form Id, Response Id field set to Response Id dynamic content of the trigger.

Add a "Switch case" action, On field set to a specific dynamic content of "Get response details" action.

 

  • Within Case branch, add a "Send approval email" action.

Image reference:11.JPG

I assume that the Case 2 branch would get executed, if you want to get the response of the approval mail, you could add the next action as below (add your next action within Case 2 branch):12.JPG

Or you could add your next action under Switch case action (Within "Apply to each" action😞

 

13.JPG

 

Best regards,

Kris 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

vish_p
Level 8

Re: Getting approval response from switch case which got executed

Thanks Kris,this workaround is what i have applied now..thanx again 🙂

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users Online
Currently online: 93 members 4,787 guests
Please welcome our newest community members: