cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Creating a SharePoint URL item

Hi,

 

I am attempting to Move documents between Document Libraries on SharePoint Online.  The available tutorials indicate this can be handled with the Copy/Delete actions.  As part of the process I would like to create a SharePoint Link Item on the "Source" Library pointing to the new Document.  I've been atempting to use the Create File and specifing .url extension in the File Name but cannot seem to setup the File Content in a way that resolves.  I've tried putting the Path variable from the Copy Action as well as just feeding it a static url (www.google.com) as a tests and while the url file is created it does not function.

 

http://i65.tinypic.com/x55u1c.png

 

Cheers,

-JB

1 REPLY 1

Hi @jbenson,

 

You will need to use a get file properties.

Then initialize a variable with the following expression
 
replace(substring(body('Get_file_properties')?['{Identifier}'],add(indexOf(body('Get_file_properties')?['{Identifier}'],'%252f'),5),sub(length(body('Get_file_properties')?['{Identifier}']),add(indexOf(body('Get_file_properties')?['{Identifier}'],'%252f'),5))),'%2b','_')
The above replaces all the junk in the Identifier.
 

You will need to use Get file content using path

 

Then finally use a create file

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (15,245)