cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SharonR
Helper II
Helper II

Approval Outcome Email

I'm trying to set up a simple flow and it has been anything but simple!  I have a form that when a person completes the form they choose NEW for the status.  The flow I created will automatically create the List item.  I wanted the list item status to change to PENDING.  I dont know how to do this. 

 

Once the List Item is created My flow will trigger an approval.  The approval seems to be working great.  However, once everyone approves there is NO outcome email.

 

I need an approval email to send to my manager which shows everyone that approved.  The manager wants a paper copy of the approval so the OUTCOME email is imperative.

 

 

SharonR_0-1650574495050.png

 

SharonR_1-1650574517543.png

 

SharonR_2-1650574538713.png

 

SharonR_3-1650574567339.png

 

I have two approvers in Assigned to:

 

SharonR_4-1650574611739.png

SharonR_5-1650574634363.png

SharonR_6-1650574677564.png

 

Heres the full picture that got cut off:

 

SharonR_7-1650574697785.png

 

SharonR_9-1650574737958.png

 

THANKS ALOT! for any help on this.... 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Most Valuable Professional
Most Valuable Professional

That info is stored in one of the related tables.  I'm not sure which one, but I'll try to find out for you.  The other way I've seen this done in the past is to run all the approvals as single approvals in Parallel, either in branches or in a concurrent loop.  Then you'll know based on which ones have returned who has responded and who hasn't.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

23 REPLIES 23
Pstork1
Most Valuable Professional
Most Valuable Professional

Right now you are sending one email for each approver. If you want a single email for all the approvers then replace the email action you have now in the responses loop with something that aggregates all the approvers into a variable.  There will be one approver for each Responses object.  Then when you exit that loop send a single email with the results and the responders names that you have aggregated.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

is there any way you could Please add a screenshot of that?  The variable that I have here i just copied from a you tube video.  I'm not a programmer.  I'm an end user and i'm just trying to replace the workflow that i created years ago in sharepoint 2010.  

Pstork1
Most Valuable Professional
Most Valuable Professional

Here's a screenshot of the overall loop.  Then I'll do individual shots of each step.

image.png

Initialize a variable of type array and send the approval set for "Everyone must approve"

image.png

The outcome of the Approval will be a comma delimited string of whether each person approved or rejected.  It will wait for everyone to respond or until the first person rejects the approval.  So I test whether Outcome contains "Reject".  If it doesn't then everyone approved.

image.png

Then in the Yes side (where the item was approved) I loop through the responses and append them to the array variable I created earlier.  After processing all the responses I convert that array to an Html table and embed that table in the email.

image.png

YOur details will vary, but that is the general process.

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
SharonR
Helper II
Helper II

thank you for helping me! 

 

I got an error message:

 

SharonR_0-1650646363370.png

  HERE IS MY SUMMARY:

 

SharonR_1-1650646403039.png

 

 

This is what I added:

 

SharonR_2-1650646444198.png

SharonR_3-1650646467492.png

SharonR_4-1650646507526.png

 

SharonR_5-1650646529813.png

SharonR_6-1650646543453.png

  I never got the Outcome Email.

For some reason I also didnt get the attachment on the approval email.

 

I

 

Pstork1
Most Valuable Professional
Most Valuable Professional

Why are you creating an HTML table from Outcome?  Outcome is a string you use to decide whether the item was approved or rejected.  To create a Table you need an array of values.  That is what the variable is for.  You are adding specific values from each approver to the array so you can turn it into a table to embed in the email.  Take a look at the screenshots I posted in my last response.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
SharonR
Helper II
Helper II

is this what i should put?

 

SharonR_0-1650656082534.png

 

 

Pstork1
Most Valuable Professional
Most Valuable Professional

Yes, but that and the send an email shouldn't be inside an apply to each or you will send multiple emails.  The apply to each is to populate the variable.  But you don't create a table with it until after you exit the loop.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I moved it out of the apply to all and it still failed.

 

SharonR_1-1650660403045.pngSharonR_2-1650660425147.png

 

Pstork1
Most Valuable Professional
Most Valuable Professional

Back to the previous comment.  You are trying to create an HTML table from Outcome, not the variable.  Just moving things around isn't going to fix the flow.  Look at each action and try to understand what it does.  Until you understand the logic you aren't going to be able to get it to work.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I won't understand the logic because I have zero training.  I am simply trying to

"get it to work" so I can move on.  Since Microsoft is depreciating the 2010 workflow approval in SharePoint I have to get another solution.  Flow is very complicated I have been watching you tube videos for weeks.  I am a business analyst.  I dont have any formal training in this.   It is a long shot that I will understand the logic.  Moving things around and watching youtube videos has gotten me this far.  I have one more step to get the outcome email.  then I am done and will not use power automate again.  This is why I am on the community board.  I am looking for some quick help.  

 

Logically speaking it makes sense to me that the HTML would be based on the Outcome.  But then you said it should be an array.  I do not know where the array is in the dynamic content.  

Pstork1
Most Valuable Professional
Most Valuable Professional

Outcome is just a comma delimited string like "Approve, Approve, Approve". In that case there were 3 approvers who all approved. Responses is an array of objects that contain all the detail, like the approvers name, their comments, whether they approved or rejected, their email, etc.  That's why you use Responses, or something aggregated from Responses, to create the HTML table.

 

But the logic I'm talking about isn't flow specific.  I simply mean the logic that if you want to send one email with multiple results then you can't send the email inside the loop where you are processing the results or you will get multiple emails.  Its the logic involved in processing the things you want to get the results you want.  That's the same whether its flow or SharePoint Designer.

 

To learn flow I suggest starting with some of the free learning courses that Microsoft provides.  Like this one: Get started with Power Automate - Learn | Microsoft Docs Then start watching videos.  But when reading blogs and watching videos you need to try to understand what the presenter is doing and why.  Not just copy the details.  Otherwise flow is going to be a very frustrating tool.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
SharonR
Helper II
Helper II

Yes it s very frustrating.  Microsoft took an out of the box solution that an easily implemented and replaced it with a complicated solution that only people who are trained in computer science would understand.  Unfortunately, that doesnt change my situation.  I need this to work and I have only a few weeks to get it done.  I will keep posting on the board since that is the only place I can go for help. 

 

I did take a microsoft class but they didnt cover approvals.  if there is a class on the approvals i would definitely take it.

 

i will try to focus on responses as you suggested.

SharonR
Helper II
Helper II

Actually I DID put varResponses and I still got the error message.  

Pstork1
Most Valuable Professional
Most Valuable Professional

When you initialized varResponses did you make it an array or a string?  If you declared it as an array can you show me the action inside the loop where you appending each response to varResponses?

 

To learn approvals try this free class from Microsoft: Build approval flows with Power Automate - Learn | Microsoft Docs

 

Personally, I don't agree that flow is more difficult or complicated than SharePoint Designer workflows.  But as you said that doesn't help your problem.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I removed the variable entirely and that seemed to work.  

 

SharonR_0-1650920277546.png

 

I'm not able to see realtime the person who is still pending.  In 2010 there was a task list to see realtime the next person in line to approve.  I cant seem to locate a task list anywhere.  Is this gone too?  

Pstork1
Most Valuable Professional
Most Valuable Professional

That is one of the limitations of the new Approvals actions.  You would have to query the Dataverse database directly to find out who has not responded.

 

Data Select is another way to get specific values out of the responses array to turn into a table.  I didn't originally mention it because it doesn't use a loop and I didn't want to confuse you by making that major change to the way you went about it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I looked into the approval table in the dataverse.  The approval that i sent out yesterday had four approvers.  Someone did not approve and I was hoping to find out who in the dataverse approval table.  I dont have a column header with approver information.  Should that be there?  

 

SharonR_0-1650975673836.png

 

I was hoping that it would be near the status column but there is no information on the assigned approvers...

 

SharonR_1-1650975767365.png

its not a limitation its more of a deal breaker.  My approvers are located in regions across the country.  I dont know them personally so i would have to know WHO the culprit is.    I'm assuming that I can add a column but i cant figure out where to do that.  I was up all night trying to figure that out and i'm stuck.  do you know how to do that?

 

 

 

 

1

I also checked the Approval Request table and owning user is empty!   I feel like Microsoft is out to destroy me.  

 

SharonR_0-1650978162671.png

 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,989)