cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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.

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.

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.

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.

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 will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages