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