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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

PowerAutomate Flow to grab the URL of a Sharepoint site the flow is run from

(1) ShareShare
ReportReport
Posted on by 2
Hi
 
I am developing a SharePoint online permissions app so people can request and approve permissions to document libraires. I have everything working but the request part it currently picking up the SharePoint document libraires and sites from a SharePoint list held on another SharePoint site. So currently the user selects the SharePoint site from a drop down list (populated from the SharePoint list) and then selects the document libraires they require access for.
 
What I would like to be able to do is for a user to click on a link to launch the flow from a link on a SharePoint site and only see the document libraries for that site.
 
We have around a 100 Sharepoint sites and what I am planning on doing is placing a link on each site home page to launch the app so I would like it to be able to pick up the URL of the site the flow is launched from pass this as a parameter to the app and filter the SharePoint list to only show document libraires that match the url.
 
I am happy if this can be done by either creating a flow to capture the url and pass to the app or by passing the url directly to the app.
 
Do you know if this is possible and if so how to do it? The grabbing the url the flow/app is launched from?
 
 
Thanks
 
Dom
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    743 on at
    Hi,
     
    Hi Dom,

    Yes, this is definitely possible, you can follow the below method to achieve this.

    Pass the Site URL as a Query Parameter

    The simplest approach is to pass the site URL directly to your app via a query parameter in the link.

    Step 1: Create the Links

    On each SharePoint site's home page, create a link that includes the site URL as a parameter:

    https://[your-power-apps-url]?siteUrl=https://yourdomain.sharepoint.com/sites/SiteName



     
    Step 2: Capture the Parameter in Power Apps

    In your Power Apps app, capture the parameter when the app starts. Add this to your App's OnStart property or on your first screen's OnVisible property:

    Set(varSiteURL, Param("siteUrl"))

    Step 3: Filter Your Document Libraries

    Use the captured site URL to filter your dropdown to only show document libraries for that specific site:

    Filter(YourSharePointList, SiteURL = varSiteURL)

    Hope this helps.
     
    Thanks!
    Inogic

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 45 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans