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

Send email when item changes is sending when new item is added

I have created a flow that is only supposed to send an email when an a list item is modified, however it is being triggered when a new item is added.  I tried adding a condition to only send if the modified date is greater than the created date, is isn't working because the modified date is being marked as a few seconds after the created date.

 

Is there a way for me to write the condition to be modified date is greater than created date plus 5 minutes? Or do you have any other brilliant solutions on how to fix this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Send email when item changes is sending when new item is added

Hi @Mickala ,

 

Yes, you could add a condition to check if the modified time is greater than created date plus 5 minutes, and you could refer to screenshot below to create the flow:

1.png

The expression in the Condition as below:

addMinutes(triggerBody()?['Created'],5)

 

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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
Community Support
Community Support

Re: Send email when item changes is sending when new item is added

Hi @Mickala ,

 

Yes, you could add a condition to check if the modified time is greater than created date plus 5 minutes, and you could refer to screenshot below to create the flow:

1.png

The expression in the Condition as below:

addMinutes(triggerBody()?['Created'],5)

 

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Highlighted
Frequent Visitor

Re: Send email when item changes is sending when new item is added

This is exactly what I needed!  Is there a resource somewhere that lists how to write the different expressions?

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Users online (9,797)