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

Sequential Approval with reminders issue

Hello,

I have a SharePoint List, and each item has three columns: Manager Approval / Admin Approval / Request

 

What I want to do is to create a flow which sends an Approval Request to the Manager (if he does not accept it, remind him every x days), then, if the Manager accepts it update the Manager Approval column and send another Approval Request to the Admin (if he does not accept it, remind him every x days), then, if the Admin accepts it update the Admin Approval column, and in the end update Request column.

Until now, I have the following workflow:

 

WorkFlow.png

 

1) When an item is created

2) Get User's Manager

3 and 4) Initialize two variables ApprovalManager and ApprovalAdmin

5) Create an Approval For Manager

5a) Wait for approval from Manager                                                5b) Do until ApprovalManager is equal to True

6a) Set variable ApprovalManager to True                                       6b) Delay 3 minutes

7a) Condition Outcome is equal to Approve                                    7b) Condition ApprovalManager is equal to false

8a) Update item column Manager Approval                                    8b) Send reminder with link for approval

9a) Create an Approval for Admin

10aa) Wait for approval from Admin                                                10ab) Do until ApprovalAdmin is equal to True

11aa) Set variable ApprovalAdmin to True                                       11ab) Delay 3 minutes

12aa) Condition Outcome is equal to Approve                                12ab) Condition ApprovalAdmin is equal to false

13aa) Update item column Admin Approval                                    13ab) Send reminder with link for approval

 

This workflow works fine, but not till the end. If I don't approve the request, I get an email remainder every 3 minutes. I click the link from the reminder, it opens the sharepoint request on the right side of the window and I can select "Approve", then the Admin gets the new request... if the Admin does not approve it in that timeframe, an email reminder is sent to him... And here's the problem:

If the Admin accesses the link from the reminder, it opens the request on sharepoint in a tab on the right side of the window and he gets a pop-up "The request is no longer active"... If he clicks the X button, he can see the request in his list and accept it from there. Then, his column is updated in the Sharepoint list, together with the

 

MicrosoftTeams-image (2).png

MicrosoftTeams-image (3).png
How is this happening? The initial Approver can flawlessly approve it from the window tab, but the 2nd one encounters that error, but still can approve it after closing the error? How can I fix this? 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@AlexandruChiser 

What link are you including in your reminder email?  Can you post a screen shot?

 

 

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

Scott

View solution in original post

8 REPLIES 8
AlexandruChiser
Frequent Visitor

I found one way to fix this: split the workflow into 2 separate ones:

1st - when item is created > send approval request to manager > if he accepts it, his column is marked as YES (otherwise, after 3 minutes a reminder is send)

2nd - when an item is created or modified > check the value for the previous column > if YES send approval request to admin > if he accepts it, his column is marked as YES (otherwise, after 3 minutes a reminder is send) and the Request column is set to ACCEPTED.

This way, having two workflows that do the same thing as the single one, ensures that I am not getting the "The request is no longer active" error. Now I can see the option to approve/reject it directly from the window tab. 

It's really weird. Although I wanted to have only 1 workflow for these steps... I can live with the idea of having 2 separate ones. 

PS: the 2nd workflow will run every time a column of an item is changed , and that's something I wanted to avoid: depending on other columns.

@AlexandruChiser 

To prevent issues when the second workflow runs every time a change is made, insert a SharePoint "Get changes for an item or file" action immediately after the trigger.  Check the "has changed" in Dynamic properties for the column where the approver marks "yes".  If the column has not changed, then exit the Flow possibly by using a control terminate action (with success).

 

 

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

Scott
AlexandruChiser
Frequent Visitor

WorkFlow_admin.png

 

This is the workflow I'm using:

1) When an item is created or modified

2) Get Changes for an item or a file (properties only)

3) Initialize variable

4) If HasColumnChanged of my column equals true

5) If that value of that column equals to YES

6) Do the whole approval request magic

I've tested this workflow, and it works, but as said before, every time something changes, it gets triggered. But it lasts for 25ms or so and it ends, because the HasColumnChanged of my column equals false.

@AlexandruChiser 

I believe that this is the best that you can do.  The only way to stop a Flow from running is with a trigger condition and you can't create a trigger condition based on whether a column has changed.

 

 

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

Scott
AlexandruChiser
Frequent Visitor

This might be the best solution... and for now, I will stick to it.

Do you have any idea about the issue regarding "The request is no longer active"?

@AlexandruChiser 

What link are you including in your reminder email?  Can you post a screen shot?

 

 

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

Scott
AlexandruChiser
Frequent Visitor

For the first Approver (User's Manager), the reminder email has the following link: RESPOND LINK (for manager)

 

And for the 2nd Approver (Admin), the reminder email has the...

It seems that I messed it up... the admin had the same RESPOND LINK (for manager). I might have selected the wrong one. I fixed it now, let me check if it works and I will come back with an answer.

BTW: This mistake was done in the first workflow I posted, the big one.

AlexandruChiser
Frequent Visitor

Based on what we discussed (msg no 7 and 8)... I fixed it and now... IT WORKS.

 

Can't believe I couldn't find the issue... As the saying goes: "couldn't see the forest for the trees".

Thank you once again @ScottShearer, you saved me!

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

Users online (1,819)