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

Power Automate Send Email Reminders after 30 days and close on the 60th day

Hi,

I have a complex use case for when the item in SP is pending. The status would be pending with the requestor and after 30 days it would send 1st email reminder and then it will send 2 reminders, 2 weeks, and 1 week before the 60th day where it will be auto closed. And then if the requestor responded, the status will be changed to Active.

 

Is there a simple way to create a flow like this? I'm also struggling where it keeps triggering whenever I made modifications if the status is in pending.

1 ACCEPTED SOLUTION

Accepted Solutions

@RLSid17 

I may be misunderstanding, but my understanding is that the emails are based off of the DateReturnedToRequestor column.  Do you want is for the DateReturnedToRequested to be updated to the current date when the status is changed to Returned to Requestor?   No need to add 30 as the filter queries take care of that. 

See my example below - you'll need a second Flow.

image.pngimage.png

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

18 REPLIES 18

@RLSid17 

You may not get a straightforward flow for your requirement. However, this solution here is similar to what your are looking for and will help you create your own logic to get the desired flow.

https://powerusers.microsoft.com/t5/Building-Flows/Send-reminders-at-30-days-60-days-and-90ty-days/t...

 

Hope it helps!!

Cheers,
Ankesh
--------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

I have tried something like this but what I would like is when the status is pending, there will be a date that is pending with user then it would automatically add 30 days where it should be the due date. I have tried that and it triggers every time there are modifications made while the status is pending. Basically what I'm trying to do is 3 Strike Rule process for tickets. If user replied then it will change to Active.

ScottShearer
Most Valuable Professional
Most Valuable Professional

@RLSid17 

You'll want to start with a recurrence trigger that fires once a day.

You'll follow that with 3 Get Items actions each with a filter query.

The filter queries will look something like this for the first email:

Status eq 'Pending' and Created eq 'addDays(utcNow(), -30,'yyyy-MM-dd')'

For the second email:

Status eq 'Pending' and Created eq 'addDays(utcNow(), -42,'yyyy-MM-dd')'

 

Status is the internal name of your Status column.

Loop through the results of each Get Items action and send your email.

Here is a link for more info on SharePoint filter queries.

 

You say "when a user replies, the status will change to active" - how do you plan to make that happen?

 

 

 

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

Scott

I have tried your solution but it came up as:

"The expression "Status eq 'Returned to Requestor' AND DateReturnedtoRequestor '2022-08-19'" is not valid. Creating query failed.
clientRequestId: 368fbbbd-8f16-4d91-8a3f-f27c1d0b4ebb
serviceRequestId: 368fbbbd-8f16-4d91-8a3f-f27c1d0b4ebb"

 

I'm not sure why I need to subtract 30 days but I also tried that it didn't work.

@RLSid17 

You don't have the eq operator after DateReturnedToRequestor

Is DateReturnedToRequestor a calculated column?

 

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

Scott

Oh my bad. I have input the eq operator after DateReturnedtoRequestor but it is still showing as not valid.

The expression "Status eq 'Returned to Requestor' AND DateReturnedtoRequestor eq '2022-06-20'" is not valid. Creating query failed.
clientRequestId: 7e50d28d-bc18-4803-86f0-38239ded0736
serviceRequestId: 7e50d28d-bc18-4803-86f0-38239ded0736

Ok for some reason it worked but it is showing the date from last month, not next month which would be 30 days from now Aug. 19.

RLSid17_0-1658324881014.png


Apologies for your earlier query when a user replies, the status should change to Active and the dates should be empty. It really is a complex case and I'm wondering if this is possible. I'm trying to make it at automated as possible with less interaction from the editor of the SP list.

@RLSid17 

My error - use 30 in the expression rather than -30.

Can you explain how the user will respond?

 

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

Scott

Yes it successfully ran. So basically the filter would be if the Status is Return to Requestor then the Date Returned to Requestor is the date today plus 30 days then that would trigger?

The use would respond via email to a shared mailbox. But I forgot if that is the requirement but let's assume that they will respond via email.

ScottShearer
Most Valuable Professional
Most Valuable Professional

So the Flow should run every day - the recurrence trigger should be configured to run once a day.

Every day, the Get items action will return items where the Status is return to Requestor and Date Returned is today plus 30 days.

You can add additional Get items actions that will return items for the other two emails so that all you'll need is one Flow.

It is going to be hard to use an email to a shared mailbox to start a Flow that changes the status and clears out the dates.  That will require that you parse the text in the email and that usually does not work out well....

Rather, I suggest including a link in the email that go to the list item - the individual can check a box of something like that in your list.  Then, you can have another Flow that clears the dates and sets the status.

 

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

Scott

Thank you for quick responses.  Much appreciated! 😊

Yes I would think that would work with the checkbox. Thanks for your suggestion!

 

As for the flow I have added 30 days, 44 days and 53 days. It sends 3 emails at the same time:

RLSid17_0-1658326628246.png


I have set the Date Returned to Requestor to July 20 which is today.

@ScottShearer shouldn't the flow only send 1 email? this flow is sending 3 emails at the same time.

ScottShearer
Most Valuable Professional
Most Valuable Professional

@RLSid17 

Are you saying that all 3 emails are going out to the same person at the same time?  If so, then your filter queries must be changed.  Please post screen shots of all 3 Get items actions showing the filter queries for each one.

 

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

Scott

The filter query for each Get items is the same with the difference being the number of days.

 

I apologize if I'm not making sense of this as this has been troubling for me. 😄

 

Just to reiterate, when the Status is Returned to Requestor, the user will have 30 days before they are able to reply so once it reached the 30th day with no reply, the flow will send an email and then a 2nd one and a 3rd one if there are still no replies. I got the logic/solution that you have provided for the Due Date but the next issue is how do I automatically add 30 Days for when the status becomes Returned to Requestor? Usually they put in the date of when the ticket is returned to requestor. I was thinking to add 30 days when they have inputted that date but I tried the trigger for when an item is created and modified and update item it caused an infinite loop. 

 

Also they really want for it to be less interactive meaning no checkboxes if possible.

@RLSid17 

I may be misunderstanding, but my understanding is that the emails are based off of the DateReturnedToRequestor column.  Do you want is for the DateReturnedToRequested to be updated to the current date when the status is changed to Returned to Requestor?   No need to add 30 as the filter queries take care of that. 

See my example below - you'll need a second Flow.

image.pngimage.png

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

Scott

Wow! That actually works thank you so much Scott! It didn't trigger again after few modifications when status is Returned to Requestor. Little by little I got the idea of conditioning based on the columns. 🙂 

 

For the Date Returned to Requestor I want it to add 30 days but I think that would fall in the column Due Date. So I guess that would be the second flow for the email reminders?

Hi @ScottShearer 

Going back to the get items for the due date this is what I've done:

RLSid17_0-1658463940439.png

 

So I've created 2 due date columns for the reminder to be sent but it is sending emails at the same time instead of only 1 based on the date.

 

I've added 30 and 44 days based on the date returned to requestor and when I ran the flow it sends 2 emails. Please let me know if there are other details needed from me. 

Please disregard my previous reply, I'm able to resolve the flow for the email reminder. Thank you so much @ScottShearer! I had to change the filtering of the Due Date equals to Today to check each items.

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,718)