cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FreedomTV1
Level: Power Up

Recurrence Flow for Expiration Date checking

I am in the process of creating a Recurrence flow to check customers in a list. I want it to check the customers Expiration Date, and if its 2 days from expiring I want it to send me an email telling me to contact the customer.  I am actually thinking about having an email go to the customer as well letting them know they are about to expire. Need help with the Condition fields. Everything else seems to work fine, just that part.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Recurrence Flow for Expiration Date checking

Hi @FreedomTV1,

 

Please refer to these steps:

Step 1. Create a Recurrence trigger runs every day.

Step 2. Then add Get items action to get the items, then use the addDays() function to find these items' DueDate (Expiration date) is 2 days after. If it is, send an email to the customer.

addDays(utcNow(),2,'yyyy-MM-dd')

Annotation 2019-09-30 132508.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
jdrussell78
Level: Powered On

Re: Recurrence Flow for Expiration Date checking

Hi

You need to use the addDays expression with a minus value

addDays(triggerBody()?['ExpirationDate'],-2)

Please mark this as a solution if I have helped you.
Community Support Team
Community Support Team

Re: Recurrence Flow for Expiration Date checking

Hi @FreedomTV1,

 

Please refer to these steps:

Step 1. Create a Recurrence trigger runs every day.

Step 2. Then add Get items action to get the items, then use the addDays() function to find these items' DueDate (Expiration date) is 2 days after. If it is, send an email to the customer.

addDays(utcNow(),2,'yyyy-MM-dd')

Annotation 2019-09-30 132508.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,606)