Argument value pass to global handler

Hi All,

need help for how we can use one workflow argument assign value in global handler

like i have one workflow like website open in this workflow i have one argument like getPONumber like PONumber =1111
in this case if we got any error so globle hander should me send me mail with that PONumer ,for this 1111 you got error
please check and help

Regards,
Ram Gurav

thanks in advance

1 Like

You can’t directly pass
But there is a work around where once after getting the P.O. number add it to a queue
If any exception occurs then it goes to global exception handler where use GET TRANSACTION item and get the last added queue item and u can include in your mail as well

Better have a separate queue to store this P.O. number if u r already using a queue in ur process

@Ram_Gurav1

@Ram_Gurav1

Set up your exception handling for the main workflow. This can be done using Try-Catch activities.
Inside the catch block, create an exception message that includes the getPONumber value and any other relevant details. You can use the Throw activity to raise an exception.

Example:
Throw New Exception("Error occurred for PONumber " & getPONumber)

If you’re using a global exception handler, make sure it’s configured in your project settings. The global handler should be set to handle the exceptions you’ve raised.

@Ram_Gurav1

You cannot directly pass to geh…

One way would be to use assets…at the strt of process.xaml add the asset value with ponember …using set asset…

Then use get asset in geh and use it in mail

Cheers

Hope it’s clarified @Ram_Gurav1
Let us know for any further clarification

@Ram_Gurav1

Hope this helps…Happy Automation

Cheers