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 Automate
Answered

Split trigger URL

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Rebecca-MSFT here is how I did it 

    jinivthakkar_0-1616009898691.png

    jinivthakkar_1-1616009935163.png

    jinivthakkar_2-1616009961675.png

    "itemUrl": "https://tatatiago.sharepoint.com/sites/Test/Shared%20Documents/Forms/AllItems.aspx#id=%2Fsites%2FTest%2FShared%20Documents%2FABC%2Epdf&parent=%2Fsites%2FTest%2FShared%20Documents",
    
    Split by sitename /Test/ = split(triggerBody()?['entity']?['itemUrl'],'/Test/')
    
    Get tenant url = outputs('Compose_-_Split')[0]
    

     

    Hope this helps.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Verified answer
    RJ-23070343-0 Profile Picture
    Microsoft Employee on at

    Sorry just updated the Post. I wont know what the name of the Site is ahead of time so wouldnt be able to split on the Site name. The user would be clicking from a manual trigger. I did find this from a previous post...


    join(take(split(outputs('URL'), '/'),6), '/')

     

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard