cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Resident Rockstar
Resident Rockstar

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!


View solution in original post

11 REPLIES 11
Highlighted
Resident Rockstar
Resident Rockstar

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!


Highlighted
Frequent Visitor

Re: Flow & Approval Emails

Approval Flow.png

 

 

Highlighted
Resident Rockstar
Resident Rockstar

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
Frequent Visitor

Re: Flow & Approval Emails

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

Highlighted
Resident Rockstar
Resident Rockstar

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!


View solution in original post

Highlighted
Frequent Visitor

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. 

Highlighted
Resident Rockstar
Resident Rockstar

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!


Highlighted
Frequent Visitor

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

Highlighted
Resident Rockstar
Resident Rockstar

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!


Highlighted
Advocate III
Advocate III

Re: Flow & Approval Emails

 

Approval_change.pngIn condition please change the text from Approved to  Approve. Hopefully this works. As this is expected behaviour now.

Highlighted
Frequent Visitor

Re: Flow & Approval Emails

just set it to "Approve" instead of "Approved"

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (4,930)