cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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.
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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,025)