Skip to main content

Notifications

Community site session details

Community site session details

Session Id : DZY8qFTE5qpfvJ5Pbj/j0e
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
    7,794 Super User 2025 Season 1 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started