We will use a separate workflow to read the configuration parameters and pass them to the main workflow. So, let's create the new sequence file by clicking on New on the UiPath Studio ribbon and choosing the Sequence option. Name the new sequence ReadConfig.xaml and click on Create.
In this sequence file, we will open the Config.xlsx file that we created in the previous section, read the values, and store them as Dictionary arguments. Then, we will pass this Dictionary variable with the populated key-value pairs back to Main for the automation process to use.
The UiPath Dictionary variable or argument type is used to store key-value pairs.
Let's open the ReadConfig.xaml sequence and step through how to create the workflow:
- Add an input String argument called in_ConfigFile with a default value of Config.xlsx. Add an Output argument of the Dictionary type called...