Hi guys. I am building a robot containing more than one workflow to handle different Excel data files. For the final steps, I want to copy some sheets from the Excel files that have been edited in the previous workflows by specifying UNOutput.Sheet(“Sheet1”). However, it seems like the variable “UNOutput” is not declared though it has been used as an Excel reference in the previous workflow. May I know how can I solve this issue?
Declare UNOutput as an out argument (e.g., out_UNOutput) in the previous workflow and pass it to the next workflow. Ensure it is imported and assigned properly in the invoking workflow.
To create a variable: Go to Variables Panel below, click Create Variable, set Scope and Type.
To create an argument: Go to Arguments Panel, click Create Argument, set Direction (In/Out/InOut) and Type
If this is the workflow where you have UNOutput and want to send it to another workflow, then create an argument.
We cannot crate variable directly in Reference as.
Go to arguments Panel and create an Argument and then use Assign Statement at the end of your Use Excel File Activity.
Refer: STEP 1: In the External workflow, create an Argument of Type UiPath.Excel.IWorkbookQuickHandle, and Direction Out. Assign Excel to this Argument.
Thank you so much for your help! I have now created and saved the Out Argument for the external workflow, but may I know how can I use this for my copy sheet activity? Because when I enter the UNOutput variable in the “Reference as” field, error occurs.