This workflow example demonstrates how to use the target editor in your automation.
Context
You have captured a table and declared its rows and cells as collections.
Some cells of the table contain a number and a name. Both the number and the name are declared as a collection. You want to retrieve both the number and the name from each cell at the same time in the Info tab of the Cloud Studio.
Procedure
On the screen preview, drag and drop the Get Element activity onto one of the declared names and rename the activity Get Names.
A For each control, which contains the Get Element activity is automatically created.
On the screen preview, drag and drop another Get Element activity onto one of the declared numbers and rename the activity Get Numbers.
Another For each control, which contains the Get Element activity, is automatically created.
Drag and drop the Get Numbers activity onto the first For each block.
You can notice that an error icon appears on the step.
Click the icon next to the Target field on the right-hand side panel to open the target editor.
Click the captured screen and deploy the hierarchy to find and select the Numbers element and set the Index of the element. It must corresponds to the index of the For each control.
To find the index of the For each block, click the For each step and find its index under Loop Parameters.
Click Confirm.
Drag and drop the Log Message activity onto the For each block under the Get Numbers activity.
Select the Log Message activity to open the side panel and click next to the message field to open the Expression Editor.
Enter Step2.text + ":" + " " + Step3.text in the Expression Editor and save your expression.
Save and test your automation.
Results
You can find the names and numbers extracted from the table in the Info tab.