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 Platform Community / Forums / Power Automate / How to get current Flo...
Power Automate
Answered

How to get current Flow and current SubFlow Name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello. Communties.

I would like to ask you that getting name of current Flow and current Subflow while it is running.

I have tried to get it with "process name" in C# but I could not get it.

 

Do we have actions to get those or script?

ps. I just found it when I used an action of "Get Last Error", I was able to get SubFlow name but I would like to know to get those in other ways.

 

Thanks for your reading.

 

I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    There is no way to do that natively in PAD.

    What we generally do is have a variable initialized at the beginning of the flow where we hard code the flow name. 

     

    We also have a list for sub-flow names, and add the current sub-flow name to it in the beginning of each sub-flow. We can then access it as the last item of the list like %List[List.Count-1]% if we need it. 

    At the end of the sub-flow we remove the last item from the list. This works with any kind of a structure where multiple levels of child sub-flows are called.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard