cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted

Re: Creating a SharePoint URL item

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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,988)