cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (7,814)