Replicating a SharePoint 2013 Workflow into Power Automate

%3CLINGO-SUB%20id%3D%22lingo-sub-1750997%22%20slang%3D%22en-US%22%3EReplicating%20a%20SharePoint%202013%20Workflow%20into%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1750997%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20setup%20a%20PowerApps%20within%20SharePoint%20Online%2C%20which%20will%20populate%20a%20word%20document%20but%20fill%20in%20the%20document%20control%20and%20select%20a%20template%20based%20on%20the%20template%20chosen%20and%20also%20the%20type%20of%20document.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20I%20need%20it%20to%20rename%20the%20files%20based%20on%20a%20SharePoint%20list%20so%20that%20it%20sets%20the%20name%20in%20a%20our%20corporate%20naming%20convention.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20SharePoint.%202013%2C%20we%20had%20a%20workflow%20that%20changed%20the%20variables%20and%20then%20created%20the%20document%20and%20named%20it%20etc.%20I%20would%20like%20to%20replicate%20this%20in%20SharePoint%20online%20using%20PowerAutomate.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1750997%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1778251%22%20slang%3D%22en-US%22%3ERe%3A%20Replicating%20a%20SharePoint%202013%20Workflow%20into%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1778251%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757690%22%20target%3D%22_blank%22%3E%40alexwithers2712%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20direct%20option%20to%20rename%20file.%20You%20have%20to%20read%20Meta%20Data%2C%20File%20Properties%20%2C%20Content%20from%20action%20given%20by%20Power%20Automate.%3C%2FP%3E%3CP%3ERefer%20this%20URL%20for%20more%20info-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FGeneral-Power-Automate%2FRenaming-a-File-in-SharePoint-Online-using-Flow%2Ftd-p%2F209549%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FGeneral-Power-Automate%2FRenaming-a-File-in-SharePoint-Online-using-Flow%2Ftd-p%2F209549%23%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have setup a PowerApps within SharePoint Online, which will populate a word document but fill in the document control and select a template based on the template chosen and also the type of document.

 

However I need it to rename the files based on a SharePoint list so that it sets the name in a our corporate naming convention.

 

in SharePoint. 2013, we had a workflow that changed the variables and then created the document and named it etc. I would like to replicate this in SharePoint online using PowerAutomate. 

4 Replies

@alexwithers2712 ,

There is no direct option to rename file. You have to read Meta Data, File Properties , Content from action given by Power Automate. Then create file as and delete old file.

 

Refer this URL for more info- https://powerusers.microsoft.com/t5/General-Power-Automate/Renaming-a-File-in-SharePoint-Online-usin...

 

I hope its clear to you.

 

Highlighted

@ShivajiDhole 

 

On SharePoint 2013 we had this workflow that set the variable for DocNum & DocRef based on a SharePoint list that has the information 

 

1.png

 

It then applies the variable(s) and sets the name with also populating the information from a SharePoint list form:
2.png

Highlighted

@alexwithers2712 ,

 

I thin MDS Core document Type is List you have. You can read List data into Power Automate Variable using Get Item Action.

 

If you have single item in List then use First () Filter otherwise filter data as per your expectation. Its just clue not all steps.

 

ShivajiDhole_0-1602658703842.png

 

 
 

 

 
 

 

 

 

Highlighted

@ShivajiDhole This is what I have so far, but I am unable add an initialise variable to the 'if yes' section. Not sure whether I should be creating two separate flows or do this in a different way

 

121494201_3616640978367517_4845086349617349880_o.jpg