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

Triggering only the "Modified" part of the "when an item is created or modified"

Hi,

 

Apologies if this has already been answer but i cannot seem to locate this in the forum.

 

Is there a way to trigger only the modified part of "when an item is created or modified" trigger?

 

I know there has been interest for developing a trigger for when a file has been modified but there doesn't seem to have been anything added as of yet.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Callum91,

 

You could following these steps to set the trigger "When an item is created or modified", to make it only will be fired when an item modified:

1. Click the right top of the trigger, then click the setting:

Annotation 2020-05-06 102217.png

2. Scroll down you will find a feature is Trigger condition, click add and then paste this expression into it and save it, it means if the item created time is not equal to modified time, the operation just do on the item is modified not created:

@not(equals(triggerbody()?['Created'],triggerbody()?['Modified']))

Annotation 2020-05-06 102153.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

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @Callum91,

 

You could following these steps to set the trigger "When an item is created or modified", to make it only will be fired when an item modified:

1. Click the right top of the trigger, then click the setting:

Annotation 2020-05-06 102217.png

2. Scroll down you will find a feature is Trigger condition, click add and then paste this expression into it and save it, it means if the item created time is not equal to modified time, the operation just do on the item is modified not created:

@not(equals(triggerbody()?['Created'],triggerbody()?['Modified']))

Annotation 2020-05-06 102153.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.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,922)