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
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
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.