cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
praveenc
Level: Powered On

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

Re: Email notification when item is not modified for 5 days

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
Super User
Super User

Re: Email notification when item is not modified for 5 days

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

Re: Email notification when item is not modified for 5 days

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

praveenc
Level: Powered On

Re: Email notification when item is not modified for 5 days

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.

 

 

 

arguille
Level: Power Up

Re: Email notification when item is not modified for 5 days

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 ??? 

Highlighted
arguille
Level: Power Up

Re: Email notification when item is not modified for 5 days

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

arguille
Level: Power Up

Re: Email notification when item is not modified for 5 days

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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 383 members 4,522 guests
Please welcome our newest community members: