I want to take screen shot of random exceptions in UiPath. For this, I need to add Take screenshot xaml in the Global Exception Handler workflow.
How can I pass arguments to the TakeScreenshot workflow inside Global Exception Handler workflow? Sample demo will help.
You have to read the config file again in global exception handler…i dont think you can directly pass arguments to handler…
So copy the initallsettings.xaml to global wxception handler and then pass the values to the takescreenshot.xaml
@anamika1506, variables you have in your workflow are passed to the global exception handler.
you can access them in the handler with errorinfo.workflowarguments(“Key”), where the Key is the name of your variable. They are stored in a dictionary.
The rest depends on, what you need in your error handler.
The scenario you provided is great!
Using the “assign” activity, getting the value of a variable into Global Exception Handler, completely achieving the same effect like adding arguments.
Still be cautious with this solution . Also If my Answer helped you, you could mark it as “Solution” so other members have an easier time finding help as well.