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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard