cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

SharePoint and encoding of slashes

Not sure when this happened but something appears broken with the encoding of slashes.

 

Here is an example of a trigger when file is created (properties only)

 

trigger output.PNG

You can see the in the identifier the slashes have been encoded as %252f

 

Now see the output of the next action which is a file copy - it complains the file doesnt exist.

 

action error.PNG

If I take that API call URL and try it in my browser I get the same error as expected. 

 

invalid call.PNG

If however I swap out the %25252f for %2f it works as expected

 

valid call.PNG

 

1 REPLY 1
Community Support
Community Support

Hi @JamesW4,

 

Could you please share a screenshot of your flow's configuration?

Do you filled Identifier dynamic content of the trigger within Source File Path field of "Copy file" action?

 

The Source File Path field of "Copy file" is required to fill a Path to the source file rather than the Identifier of the file. The Copy file action could not parse the %252f code within the File path.

 

If you want to copy the file to another library when a file is created in a SharePoint library, please take a try with the following workaround:21.JPG

Within Source File Path field of "Copy file" action, type Folder path dynamic content of the trigger and then type the DisplayName dynamic content of the "Get file metadata" action.

 

Note: There is no space between two dynamic contents within Source File Path field of "Copy file" action.

 

The flow works successfully as below:22.JPG

 

More details about the "Copy file" action of SharePoint connector, please check the following article:

Copy file

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 (12,709)