Can anyone please explain on getting the workflow name or filename(.xaml filename) as part of exception handling?

We have multiple workflows in a project. To trace the exact workflow/file where the exception has occurred, is there any method or keyword to get the workflow name or filename(.xaml filename) as part of exception handling?

Note: exception.source returns the activity name but not the workflow name.

Please suggest.

Hi,

Have you tried to get the package Alphabet Workflow Activities and use the get Xaml File Name activity to retrieve the workflow name. As shown image below:

image

After retreiving the name and add into variable you can then throw exception message with the variable that contains the name of the xaml file.

I think this kind of question has been asked earlier from this thread, please check this out also: How to get the current running Xaml file name dynamically

I hope this help :slight_smile:

1 Like

Thanks, it works!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.