Let's open up the Parent bot if you do not have it already open. We will continue from where we left off within the Try block.
We will add a Step action to group together the actions in this section. We have named it Loop, Invoke and add to Excel. You can add a title that makes sense to you. Within this step, let's perform these steps:
- Add a variable to keep a counter as we loop through the data table records. Let's call it currentIteration and choose Number for Type. Check both Use as Input and Use as Output.
- Add another variable to store the output we receive from the Child bot. We will call it dictOutput and choose Dictionary for Type. Check Use as Output.
The dictOutput Dictionary variable stores the key-value pair with all the output variables in the Child bot. In our case, we are using this to retrieve the value of the SO number using the SalesOrder output variable defined in the Child...