Power Automate: rename an excel file in sharepoint
To rename an excel file, first, I need to know its “ID”. In the sharepoint, click on the “down arrow” near “all documents”:
Click on “add or remove fields”:
In the list, select “ID” then click on “apply”:
And this is the “ID” for the file that I want to rename:
In Power Automate, I will select this option to start my flow:
Click on the “+” to add a new action:
In the “search” field, put “sharepoint send http” to select this option:
Fill all fields:
- Method: select “post”
- Uri: _api/web/lists/GetByTitle('WW')/items(XX)/ValidateUpdateListItem
NOTE: change “XX” by the ID of your file and “WW” by the “root folder” - Advanced parameters: click on the field to select “body”
Then put this code (change “YY” by the new name):
{ "formValues":[ { "FieldName": "FileLeafRef", "FieldValue": "YY" } ] }
After clicking on “save” then “test”, this is the result:
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...






