web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Turn a link with space...
Power Automate
Answered

Turn a link with spaces into a URL for a folder copy

(0) ShareShare
ReportReport
Posted on by 11

hello, first time posting. We have paid a power automate contractor in the past to create a flow that updates a list item on creation. When the staff member creates a new site from filling out the form, this flow creates and updates the list item. The staff member then copy and pastes a set of folders files into the newly created and updated site. I want to automate this copy and paste as a beginner to power auotmate (main role is salesforce). As a test I have added a step that can copy the files to a pre-existing site as the 'Destination Site Address' is a picklist option. What I want to do is pass the newly created site's url into the 'Destination Site Address'.

 

The existing flow steps create a site link with our sharepoint URL and then the ServerRelativeURL, added at the end. Though I cant use this in the 'Destination Site Address' as it has spaces.

 

How to I take our sharepoint URL and then the ServerRelativeURL he used to set link and pass it into the 'Destination Site Address'.

 

At the moment my input JSON looks like this

 

"parameters/destinationDataset": "https://ourcompany.sharepoint.com/sites/events/TEBT 0000 SG",

 

When I believe it should be 

"parameters/destinationDataset": "https://ourcompany.sharepoint.com/sites/events/TEBT%200000%20SG",

Categories:
I have the same question (0)
  • PatrickM874 Profile Picture
    11 on at
    encodeUriComponent???
  • Verified answer
    PatrickM874 Profile Picture
    11 on at

    so I encoded the event string then added it to the end of the destination folder string.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard