Hope you are safe and healthy.
In my RPA project, I have two independent Invoke workflow activities with two independent Sequences.
I am trying to get sourceFilepath from Workflow 1 and pass it in the Workflow 2.
But it seems that sourceFilePath value is not accessible outside the first workflow.
I am not sure how to use arguments in this type of scenario, may be i am missing something.
As far as I know, it is easy to pass a value from a children workflow to another one by below steps.
1.Add an out argument in children workflow 1.
2.Add an in argument in children workflow 2.
3.Assign the out argument of children workflow 1 to the value in workflow1.
4.Assign a variable to the out argument in main workflow
5.Assign the in argument of children workflow 2 to variable in main workflow.
6.Use the in argument in workflow 2.
Thank You for your response.
For the step4, Out argument is not accessible in the main.
Please find my attached screenshots.
Arguments_Uipath.docx (46.3 KB)
February 3, 2022, 4:16am
You are in the correct way, but need a variable in between to pass your value
Create a variable in Main workflow and that variable assign to outvariable in the arguments
For your reference with example, check below link
Due to the nature of arguments, you are going to use them a lot in relation with the Invoke Workflow File and Launch Workflow Interactive activities. They can be found in the Activities panel, under Workflow > Invoke and they enable you to browse...
Hope this will help you
February 3, 2022, 4:23am
First create one variable of type string in Main.xaml file.
In Wrokflow 1 workflow, you created out argument right and pass this value to variable the one created in Main.xaml file.
Pass this variable to value to other workflow Workflow 2.
Refer this document for more information regarding the Argument
Hope it will helps you
have a view on this:
No, you don’t need to invoke again back (in fact you shouldn’t - that would create a potentially infinite loop).
I think the article you linked explains it ok’ish. Look at the bottom for type of arguments - what you need is Direction being either Out (if you only want to return the value) or In/Out (if you want to send the variable, modify its value and return it).
Please note that in both cases (Out and In/Out):
you need to assign the value to the argument in the Workflow(1)
Thank You all, problem is solved.
February 7, 2022, 7:11pm
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.