cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tshulha
Regular Visitor

sending approval email to the form respondent

Hi. I want to send an approval email to the form respondent if an answer to the question "Is SAP access required?" is yes. Is there any way to build this flow? The respondent's  email is recorded automatically in the form's responses spreadsheet.

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Tshulha
Regular Visitor

Re: sending approval email to the form respondent

Thank you, Ed.

I reconfigured my task to just send a notification with instructions is SAP was selected.

I used the following approach with condition to solve my task:

https://flow.microsoft.com/en-us/blog/using-forms-with-flow-to-automate-onboarding/

Tanya.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: sending approval email to the form respondent

@Tshulha 

Hi there, totally possible.  There might be a more elegant way, but here's how I did it:

 

You've got your Forms trigger "When a form is submitted", right?  And we know that as soon as we add the response stuff, Flow kicks off an Apply to Each loop, which means that if we put the approval inside that, we'll get an approval for each response answered (ie 10 approvals if 10 questions on the form).  So we need to collect the email address inside the loop, and then do the approval outside of the loop.  

What I did after the trigger was initialize a String variable.  This will give me someplace to store the email address and carry it out of the loop.20190725a.PNG

Then, we add the "Get Response Details" and let Flow make an Apply to Each loop.  Right after that (inside the loop) we add our condition to check the answer of the SAP question:20190725b.PNG

and if it's Yes, then we append the Responders eMail to the String variable.  I added a semi-colon just in case it added the email address more than once, but it didn't.20190725c.PNG

 

Then, outside of the loop, we look to see if there's anything in the string variable.  If they checked "no", it should be blank, and we don't want to start an approval.  If it's Yes, then we start the approval and use the variable as the Assigned User (I'm presuming all of the form responders will be on your tenant).20190725d.PNG

 

Everything else should be how you probably already have the approval.  What do you think?  

Either way, keep us posted.

 

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

 

Highlighted
Tshulha
Regular Visitor

Re: sending approval email to the form respondent

Thank you, Ed.

I reconfigured my task to just send a notification with instructions is SAP was selected.

I used the following approach with condition to solve my task:

https://flow.microsoft.com/en-us/blog/using-forms-with-flow-to-automate-onboarding/

Tanya.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,764)