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 Apps / How to Store connectio...
Power Apps
Unanswered

How to Store connection URL in variable

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I am able to connect SharePoint Online site. Now I want to store connected SharePoint Site Url in variable, I want to pas this url into PowerAutomate Flow. 

 

How can I store url in a variable?

 

Avi

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Is the URL static or will it change?

  • Anu262022 Profile Picture
    4 on at

    It is the same URL when we connected to the edit form with data connection with the existing SharePoint Site? 

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Copy the link to the SharePoint site from the browser.   In the OnVisible of the screen set a variable with the copied link.

     

    Set(varSPLink, copied url).   You may want to enclose it in "" like Set(varSPLink, "http://sharepointsite.com").   Now you can pass varSPLink to your flow.   You will need to test it with and without the quotes around the URL to see which works.

  • Anu262022 Profile Picture
    4 on at

    I know these basic steps. We cant hard code the URL,

     

    Currently, I am using a test URL for development purposes, when we deploy the form in production, then again we need to open power app form and update the url manually. I want to avoid this.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Another option would be to create a list in your SharePoint site.   Add a single item with the URL and then add this list to the App as a data source.  You can then either set a variable with the URL on app start, or screen visible and use it in the flow that way. 

     

    This allows you to use your test site for now and when you go to production you just update the link in the list.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard