Is there a way we can identify in the item updated event that the document(File) associated with the item is updated or not?
Thanks, Mallikarjun
When you create a flow with SharePoint trigger like "When an item is created or modified", you want your flow only triggers when the new item is created or modified. However, when you turn off the flow, make modification to the items, then turn on the flow, the flow still triggers for that item's modifications.
You can use the length(…) expression here to check if the output array length is 0 (empty) or more than 0 (not empty) items. If the length(…) is 0, the item doesn't exist yet, you can create it. If it's not 0, the item already exists and you can use the ID from 'Get items' to update it.
Step 1: Open Power Automate --> Create Flows --> Automated from Blank, Select the trigger when an item is created and click on create. Step 2: Once you click on create you will be navigated to flow editor where in you can modify the flow and add actions to be performed below the trigger.
SharePoint triggers. SharePoint triggers let you create flows that monitor for changes in a SharePoint list or library. If one or more changes occur in a subscribed list, that flow is triggered to run.
how about comparing Created Date and Updated Date fields if same or not?
or you can compare with last version;
SPListItemVersionCollection oVersionInfo = oListItem.Versions;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With