web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard