top of page

Renaming a SharePoint File via Power Automate

One of the glaring omissions in Power Automate is the ability to rename a file in a SharePoint Document Library.


I'd seen a few online suggestions to remediate this, like copying the file into a newly named file, and deleting the original; but this is a really bad idea, as you lose Version History and auditability on the original file.


Luckily, you can make calls onto the SharePoint REST API from Power Automate to rename the original file, without any copy or delete actions - an example of this can be found below:

 

 

... and the end Result is shown below! Select your file in SharePoint, select the Power Automate to perform the rename (in my case, 0 - Rename a File), and hey presto - the file is renamed in the SharePoint Document Library in situ!


5,027 views1 comment

1 Comment


Unknown member
Jul 30, 2021

Thank you for this - it helped me a great deal this morning. I found myself getting errors 'The property '__metadata' does not exist on type 'SP.Data.MyListItem', and removed that. It now works for me, but I'm not clear on why you used it, so perhaps I have now created another problem.

Like
Otagem Logo Wider.png
bottom of page