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

Email notification when item is not modified for 5 days

Hi

 

This looks like a fairly simple Flow. I just need an email notification sent to me when a Sharepoint item has not been modified for 5 or more days. But when i execute the below it does not work. What am i doing wrong?

 

@greaterOrEquals(triggerBody()?['Modified'], (addDays(utcnow(), 5))

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @praveenc,

 

Could you please share a screenshot of the configuration of your flow?

Do you want to receive the email notification when the Sharepoint item is modified for just 5 days and more days?

 

I have create a flow as below:

Capture.PNG

 

If you want to receive the email notification when the Sharepoint item is not modified for just 5 days and more days,you acould add expression in the condition as below:

 

@less(triggerBody()?['Modified'], addDays(utcNow(), -5))

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

 

 

View solution in original post

6 REPLIES 6

addDays(utcnow(), 5) gives you the date in  5 days from now you probably want -5 instead to get 5 days ago.

 

Greater of equals should be lessOrEquals as you are looking for earlier dates than the date 5 days ago.

 

 

Community Support
Community Support

Hi @praveenc,

 

Could you please share a screenshot of the configuration of your flow?

Do you want to receive the email notification when the Sharepoint item is modified for just 5 days and more days?

 

I have create a flow as below:

Capture.PNG

 

If you want to receive the email notification when the Sharepoint item is not modified for just 5 days and more days,you acould add expression in the condition as below:

 

@less(triggerBody()?['Modified'], addDays(utcNow(), -5))

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

 

 

View solution in original post

Thank you very much for the prompt reply. You were right, I need the flow to check if an item is not modified for 5 days and then send an email to the item creator asking them to follow up on the matter and keep it up to date. If a matter has been modified in the past 5 days then dont email. 

 

I have implemented it as you provided. I have changed the days to 1 to test if it works. I will give feedback once its run.

 

 

 

fist of all great flow !!!  question.  Is there any way to also ensure that the flow does not run for items that are in complete, cancelled and rejected status only for logged, in progress, in review ??? 

2018-10-25_09-51-53.png

Correction I plan to run the flow on a daily basis so I think the best option is to use the following but again does anyone know how to ensure that the flow does not run for items that are in complete, cancelled or rejected status only run/trigger email for logged, in progress, in review  for item that haven't been updated (14 days my case) ??? 

 

2018-10-25_10-37-04 recurrence.png

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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
Top Kudoed Authors
Users online (7,104)