cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rejdy
Helper II
Helper II

Re-naming file in Sharepoint (NO crate-delete)

Hello guys!

 

I would like to change file's name in Sharepoint/Onedrive. However, i do not want to do that with "Create file" and "Delete file". As i want to keep existing file, update it with new content and do not trigger a flow.

 

The reason is, i have one folder where i have all orders with different status (pending, approval, signed, etc.) - i am searching through them with simply with filters. This folder is binded to my approval Flow which triggers "When a file is created".  Files (orders) i am adding to the folder are in format .docx, .xlsx and .pdf. Flow also includes AdobeSign, so when flow goes through it creates a signed .pdf agreement file from .docx, .xlsx and .pdf.

 

So my goal is to update existing file in sharepoint (.docx, .xlsx., .pdf) with sharepoint step "Update file" with content from "Get a PDF of a signed agreement". But i want the final file to be .pdf. therefore i am asking about the renaming a file including extension.

 

I do not even know if this is possible. Can you help me guys?

 

 

Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Super User
Super User

hi @Rejdy  you can do it by using one drive like this

see I aswer a similar question here

https://powerusers.microsoft.com/t5/Building-Flows/Rename-Ondrive-File-using-Flow/m-p/537242#M69732

 

and here is another answer, that says we unfortunally can't do that with a existing action but you can use API rest to try

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-File-in-SharePoint-Online/td-p/176708



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

1 REPLY 1
ChristianAbata
Super User
Super User

hi @Rejdy  you can do it by using one drive like this

see I aswer a similar question here

https://powerusers.microsoft.com/t5/Building-Flows/Rename-Ondrive-File-using-Flow/m-p/537242#M69732

 

and here is another answer, that says we unfortunally can't do that with a existing action but you can use API rest to try

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-File-in-SharePoint-Online/td-p/176708



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Helpful resources

Announcements
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.

Top Solution Authors
Users online (3,521)