Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify actual file updated vs item properties update in the SharePoint item updated event

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

like image 708
mallialways Avatar asked Dec 29 '14 12:12

mallialways


People also ask

When an item is created or modified SharePoint flow?

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.

How do you check if an item exists on a SharePoint list?

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.

How do you trigger a flow when a specific column is modified?

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.

Which type of the flow would you create if you need it to be triggered when someone adds or edits the SharePoint document library item?

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.


1 Answers

how about comparing Created Date and Updated Date fields if same or not?

or you can compare with last version;

SPListItemVersionCollection oVersionInfo = oListItem.Versions;

like image 162
Mert Avatar answered Sep 21 '22 12:09

Mert