How to get variable value from invoked workflow?

studio
error
control_flow

#1

Hello,

In Try catch -> Try, I use Invoke Workflow
next, in Catches -> Exception, I send SMTP Mail with exception.source
I would like to add there also, variables values from invoked workflow

Is this is possible ?
User need to know the last variable value when error occure

thank you
Mac


#2

myabe this could help you … https://www.uipath.com/kb-articles/how-to-invoke-workflows-from-another-workflow


#3

Hi,

I think the problem is when your Workflow being Invoked throws an error it fails to return the new values of the Arguments. In other words, it exits the file and does not return anything.

I do not know of a solution to this, unless you stored the data in a file as a workaround.

The alternative is either to not use a separate workflow file or use the Try/Catch in the separate workflow file that captures the error there which then it exits and returns all Arguments.

@carmen

Regards.