How to pass array as a input argument to the another workflow file in uipath

Hello,

I want to pass an array variable to other workflow as input argument.
Please help me out.

Thanks.

Hi @chattar.a123

Step - 1 => In another workflow create an argument with the same datatype in the arguments panel.

Step - 2 => Use invoke workflow file activity to invoke the another workflow in the Main workflow.
Step -3 => Open the Import arguments option and pass the variable to that variable and save the project.

Hope it helps!!

Hi @chattar.a123 ,
You can use arguments
Regards
LNV

arr1 is variable of integer array


Workflow arguments which is being invoked

Hi @chattar.a123

Sender Workflow (Sender.xaml):

Main:
Assign myArray = { “Item 1”, “Item 2”, “Item 3” }
Invoke Workflow File:
- WorkflowFileName: “Target.xaml”
- Arguments:
- inputArray = myArray

Target Workflow (Target.xaml):

Main:
Input Arguments:
- inputArray (Array)
For Each item in inputArray:
Log Message: "Item: " + item

@chattar.a123

Main xml

Second xml

Cheers!