How to create an RPA flow using Invoke Workflow to invoke a sub workflow
Beginner | 20 Minutes
Overview
In Robotic Process Automation (RPA), invoking a subflow from a main flow is a common way to organize tasks and reuse logic within processes. Subflows act as modular components that can be called within a main flow to perform specific tasks, making the automation workflow more organized and maintainable. For example, you can define the data validation or data entry part of the flow as a subflow to be invoked during the execution of the main flow.
In this tutorial, we will show you how to create a basic flow using the Invoke Workflow activity to invoke a subflow (part of a different .xaml file) in the project folder within the main flow. We will create a flow to pass the variable/argument from the main flow into the subflow and get the arguments back from the subflow to the main RPA flow.
📋 Requirements
|
Tutorial
Flow Improvement
To output multiple arguments from the subsequence, follow these steps:
Inside the SubSequence.xaml, add another Assign activity and configure it as follows:
- For the To property, create the argument:
- Name: Output2 of type string and direction Out.
- For the Value property, assign a random string such as
"extra value".
Next, go back to MainPage.xaml and update the Message Box activity. In the Input Text, specify the following expression to display all arguments passed from the subsequence:
output("output").ToString + " " + output("output2").ToString
This way, you can see all the arguments passed from the subsequence.
What made this section unhelpful for you?
On this page
- How to create an RPA flow using Invoke Workflow to invoke a sub workflow