Control Copy

When this task executes, it copies the value from a source path to one or more destination paths. For instance:- you can use this task when you want to copy the value of a text box to another text box.

To configure the Control Copy task:

  1. In the Events dialog box, scroll down.
  2. Under Add Tasks, click the Select Task list, and then select CONTROL_COPY.
  3. Click Add Task Config, and the Add Task dialog box opens.
  4. In the Add Task dialog box, click the Configuration area to expand it.
  5. In the Configuration area, perform the function as follows:
PropertyDescription
TypeClick this list and then select one of the following options:
1. Fixed
If you select this option, the CONTROL_COPY task will allow you to copy the string type data from the source path to the destination path.

2. JSON
If you select this option, the CONTROL_COPY task will allow you to copy the value from a source JSON path to the destination JSON data path. If the value in the destination JSON path is changed, the same value change occurs in the source JSON path.

3. CLONE
If you select this option, the CONTROL_COPY task will also allow you to copy the data from the source JSON path to the destination JSON path. If the value in the destination JSON path is changed, the same value change does not occur in the source JSON path.

4. RANDOM
If you select this option, the CONTROL_COPY task will allow you to copy a six digits random value from the source path to the destination path.

5. Date
If you select this option, the CONTROL_COPY task will allow you to copy the current date.
Copy From PathIn this field, enter the value based on the selected option in the Type list. Assume you have selected JSON in the Type list. Thus, you can enter the JSON path in the Copy From Path field as follows:

# Sample Data Path
getVal(“tempObject.name”)

The CONTROL_COPY task will fetch the data from the name object.
Copy To PathIn this field, enter the value based on the selected option in the Type list. Assume you have also selected JSON in the Type list. In the Copy To Path field, enter the JSON path as follows:

# Sample Data Path
getVal(“tempObject.name1”)

The CONTROL_COPY task will copy the data from the name object to the name1 object.
Add PathClick Add Path to copy the data from the source path to more destination paths.
  1. After you enter the data path or value in the related fields, click Submit to successfully configure the CONTROL_COPY task.
Was this article helpful?
YesNo