Skip to main content
Community site session details

Community site session details

Session Id : 5IiMYMMNdEvDBabOgN/4Vg
Power Automate - General Discussion
Unanswered

Get SharePoint Site URL from Document URL

Like (0) ShareShare
ReportReport
Posted on 18 Dec 2023 20:26:34 by 2

I am looking for a Power Automate which can notify the members of the owners group on a site when a user posts a document link into a list.  I know how to use a SharePoint HTTP call to get the site owners if I can get the site URL.  I can even get close to the site URL by parsing the Document URL.  The issue I have is if there is a structure of subsites, I dont know when my URL stops.

Anyone tried to do something like this before and have any ideas?

  • lbendlin Profile Picture
    8,077 Super User 2025 Season 2 on 19 Dec 2023 at 04:17:33
    Re: Get SharePoint Site URL from Document URL

    Exactly - you can have any number of subsite levels and the "Shared Documents"  folder can have any name.  Maybe you can lookup the file permissions and see if they lead you to the top parent permissions.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2