I want to get the Xaml File Name automatically using activity

In the xaml invoked from the Main.xaml,
When I use the “Get Xaml File Name” activity in the package “Alphabet Workflow Activities” (v2.3.0) to get the XamlFileName, I get “DynamicActivity” instead of the xaml name.
※When I use that activity in Main.xaml, it works fine (gets “Main”).
Also, I recently upgraded the version of UiPath from 2020.10 to 2022.10.4.
Before the upgrade, it always works fine.

[Question 1]
I would like to know if you know how to successfully get the xaml file name using the “Get Xaml File Name” activity.

[Question 2]
I would like to know if there is another way to get the xaml file name automatically.

Thank you in advance.

Duplicated post

1 Like

Hello @hashimotosyunsaku

Question 1: If the “Get Xaml File Name” activity in an invoked XAML file returns “DynamicActivity,” it might be due to a compatibility issue or bug in the specific package version. Check for updates, review release notes, and consider seeking support from the package developer’s community.

Question 2: To get the XAML file name automatically in an invoked workflow, pass the XAML file name as an argument when invoking the workflow from the Main.xaml. This provides a reliable way to access the XAML file name within the invoked workflow.

Thanks & Cheers!!!

1 Like

Hi @hashimotosyunsaku,

There is an inbuilt way to Get this in UiPath Studio or Robot. Please review post in this thread.

We have used this approach may be a million times, works everytime :slight_smile:

In your case, you need to choose the WorkflowName from the object

1 Like

Thank you very much.

1 Like

I have had success that way. Thank you !!