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