Within Power Automate, I'm using the SharePoint REST API action (Send an HTTP request to SharePoint) to rename a SharePoint file.
It all works perfectly, except for when I want to include a period as part of the name.
Example: I have a file named Test.docx and I want to concatenate the version number to the name which might be 1.0, 3.4, etc.
But for some reason the REST API seems to see a period and only take the stuff on the left of it.
So if the version number was 1.2 then the renamed file would end up being Test 1.docx. If the version number was 0.5 then it would be renamed as Test 0.docx.
Does anyone have any idea how to include the period and everything after it so I get something like Test 0.5.docx?
Below is the Power Automate steps.
It is not working anymore. I ended up by creating a new file, setting up the properties and deleting the old one.
I am still having this issue. It only replaces the first part of the file name but not the file extension. Please help!
Thanks so much - works perfectly. Note that I had to extract the file extension out of the "File name with extension" property - would be great if they just included a property with just the extension, but beggars can't be choosers 🙂
See my reply.
@grantjenkins you need to pass the filename with extension
I was able to reproduce the issue if I just pass 1.13 but if I pass 1.13.pdf it works.
You will also get file extension from Get file properties and then concat the name.version.extension and pass.
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2