cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Community Support
Community Support

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
Highlighted
Helper V
Helper V

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.
Highlighted
Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,091)