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

Community Champion
Community Champion

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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,296)