Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Metadata update of documents in sharepoint

Periodically we review our documents and update them. The name of the files to be updated (without file extensions) are in an Excel file and the metadata in rows. These files are in a library in Sharepoint. To update the metadata, I have to first checkout the file (company policy. Checkout cannot be turned off).
I have figured out the update andd checking back in part, but unable to get the files checked out first. Can someone help me please?

Thanks in advance

Super User
Super User

The flow would resemble something like this, where we would use the SharePoint item ID to check-out, rename and check-in the file.



Uri: _api/web/lists/GetbyTitle('Documents')/items(8)/validateUpdateListItem

  "formValues": [
      "FieldName": "FileLeafRef",
      "FieldValue": "TEST123ABC.docx"


As the files you need to rename are stored within an Excel file - without file extensions - you would need to query SharePoint for files beginning with the name stored in Excel. Hopefully you already know the correct file type to rename (Test061.doc, Test061.xlsx, Test061.pptx).

Hope this helps.


If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,643)