Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Ck3reN/9I/sz7ptK0BwYg6
Power Automate - Building Flows
Unanswered

Get tenantId and environment / instance url in Flow

Like (0) ShareShare
ReportReport
Posted on 30 Mar 2022 12:03:07 by 79

Hi,

 

is there a way to get the tenantId and the environment url of the environment, where the flow is deployed on, easily?

 

I know I could store these information in environment variables and retrieve them in a Flow, but maybe there is an easier way available through an official connector / action.

 

Thanks 🙂

  • mjburley Profile Picture
    370 on 30 Mar 2022 at 12:44:30
    Re: Get tenantId and environment / instance url in Flow

    The info you need is stored in the workflow() expression, though not in a friendly manner, in GUID speak. Just add that to a compose to see what comes out.

     

    mjburley_0-1648644189744.png

    I tend to store these values in environment variables if there are multiple apps in that environment - just saves each developer having to google the same thing 🙂

  • HerrMueller Profile Picture
    79 on 30 Mar 2022 at 12:16:44
    Re: Get tenantId and environment / instance url in Flow

    Hi @Ahammad_Riyaz,

    I think I was not clear enough, I mean how to get this information in a running flow

  • Riyaz_riz11 Profile Picture
    2,666 Super User 2025 Season 1 on 30 Mar 2022 at 12:14:50
    Re: Get tenantId and environment / instance url in Flow

    Hi @HerrMueller 

     

    Use this link

    https://admin.powerplatform.microsoft.com/

    Select the environment and you can able to see details.

    Ahammad_Riyaz_0-1648642259129.png

     

    2nd Method:-

    https://make.powerapps.com/

    Ahammad_Riyaz_1-1648642432306.png

    Select session details so you will able to get all information.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    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.

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started