cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TJ2
Level: Powered On

Flow & Approval Emails

Hello,

 

I set up an approval flow with conditions. For "approved" an email is suppsoed to go out, and for the "rejected" response, a different email is supposed to go out. No matter which answer I choose, I get the "rejected" response email. What am I doing wrong? Right now, I have the condition set to "Response is equal to Approved" then it has the two choices, yes and no. The Yes/Approved info is supposed to populate into a SharePoint list. Since there are no "apprroved" res[pnses yet, the list is unpopulated. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Flow & Approval Emails

Try setting your condition to this and trying again:Capture-087.png

 

equals(body('Start_an_approval')?['response'], 'Approve')

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


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

Proud to be a Flownaut!


9 REPLIES 9
Super User
Super User

Re: Flow & Approval Emails

Hi @TJ2

Please post a picture of your flow, any errrors and any relevant detailed information that will assist us in looking into this for you?

Thanks, Alan


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

Proud to be a Flownaut!


TJ2
Level: Powered On

Re: Flow & Approval Emails

Approval Flow.png

 

 

Super User
Super User

Re: Flow & Approval Emails

Can you post the run state of the Flow too, regardless of error or success ... I can't tell from just the Flow if it is returning true or false or indeed erroring.

Thanks, Alan


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

Proud to be a Flownaut!


Highlighted
TJ2
Level: Powered On

Re: Flow & Approval Emails

It comes back as successful. An email does go out, but only the "rejection" email. Flow Test.png

Super User
Super User

Re: Flow & Approval Emails

Try setting your condition to this and trying again:Capture-087.png

 

equals(body('Start_an_approval')?['response'], 'Approve')

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


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

Proud to be a Flownaut!


TJ2
Level: Powered On

Re: Flow & Approval Emails

Thank you! It did populate in the SharePoint list, and I didn't get a rejection email, but I didn't get an approved email either. 

Super User
Super User

Re: Flow & Approval Emails

Hi @TJ2

Is that problem solved for you, ie, it is working?

Or, does this now clarify you just aren't sending the email? ... If so, click on one of the "green ticks" and expand the "send email" on both "approved" & "rejected" to see what is happening with the send email action. feel free to post back with that graphical information.

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


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

Proud to be a Flownaut!


TJ2
Level: Powered On

Re: Flow & Approval Emails

Yes, I have the yes and no boxes. The approval is supposed to trigger an entry into a SharePoint list (which is does now with your help, thank you). And both responses either an approve or reject are supposed to trigger email responses. Email.png

Super User
Super User

Re: Flow & Approval Emails

That's great news @TJ2, please click "Accept as Solution" on the post that resolved your issue. It helps those looking for the same issue in the future.

 

All the best to you!

Alan


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

Proud to be a Flownaut!


>