I have read through numerous “Invoking Workflow” articles to no avail. I simply cannot figure out how to “return” a variable from an invoked workflow.
What I am doing can be compared to the following: calling a function and having it return a boolean.
In UIPath, this looks like the following: in main, invoking a workflow and having it return an argument to the main.
I can successfully pass arguments IN to the workflow but I simply have no idea how to get a value FROM that workflow back into the main.
I have tried the following: in the invoked workflow, I have created an ‘out’ argument called successCheck which determines if a certain action has occured. In the invoked workflow, I have a message that logs if is true or false. It happens to be true (as it is working correctly).
In the main, under IMPORT arguments, I also have that same ‘out’ argument called successCheck. I’ve also created this as an argument in the main.
In main, I have tried both reading successCheck directly (which always reads as false) and tried assigning a variable to successCheck (which also always reads false).
How do I use arguments to obtain a variable from an invoked workflow back to my main?