Get File Name of Invoked Workflow

I have a Flowchart which invokes a series of Sequences. In each of the Sequences there are several message boxes that will pop-up as the workflow executes.

What I would like to do is show the Sequence/.xaml file name at the top of the message box.

I tried using the following, but it returns the Folder name in which the file resides:

System.IO.Directory.GetCurrentDirectory.Substring(System.IO.Directory.GetCurrentDirectory.LastIndexOf("\") + 1)

How can I modify this so I can get the .xaml file name of the currently running Sequence?

1 Like

Hi @Allison_Matthews

If the names of the sequences are not going to change once you create them, why don’t you name each title of the MsgBox with its respective sequence name?