Announcements
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
Is the URL static or will it change?
It is the same URL when we connected to the edit form with data connection with the existing SharePoint Site?
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.
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 345 Most Valuable Professional
11manish 207 Super User 2026 Season 2
Mohsin Ali 177