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

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!    

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include 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 image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

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.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management 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  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Users online (4,352)