Copy Data
Last updated
Was this helpful?
Last updated
Was this helpful?
The Copy Data Node allows you to select a Source List. optionally, a list filter or filter expression, a Destination list and an easy Mapping overlay to map source values to destination fields.
When a persistent (database) list is used for Destination, the option Save directly to the database is available.
If a nested list is used as Source list, you get the option to limit the copy action to the context of the parent row. If this limit is off, all rows of the nested list will be copied for all parent rows.
The destination list has to be selected before the mapping can be created.
This node will make it a lot easier and faster to copy data from one list to another.
Use-case: Copy Sent Emails list to the email archive.
There is a transient/temporary list called Sent Emails that contains all recently sent emails and an email archive database list to keep track of sent emails.
The first step is locating the flow in which the process needs to take place and adding the Copy Data Node to the flowchart. This opens a popup where the source list is selected, In this case we select the Sent Emails list as this is the list where the application should copy from.
Once this is done the node is shown in the flowchart with the source list in the name. The next step is selecting the destination folder by dragging and dropping the list to the correct property or by selecting the property first. The filter field is left empty for this usecase as we do not use a filter for now, this field can be used for a filter or filter expression to select a certain set of rows from the source list.
As there are no other actions in this process and no additional steps need to be saved, we can enable saving directly to the database, eliminating the need for a Save Database Node.
The destination list property has to be set before continuing as the mapping is only possible when the destination is known.
In the previous section the node has been set up and added to the application flow with the right properties. The node now needs to know which fields are supposed to go into which field of the destination list. For this example, this is straightforward because the source and destination have the same name; however, this is not always the case, so mapping is always necessary.
The mapping screen can be opened by selecting 'Edit Mappings' in the node properties or by double-clicking the node.
The destination
fields can now be selected by either clicking the 'Add' button at the top left of this window, clicking the dotted line box, or dragging and dropping the destination
fields into the dotted box. The add button and clicking the box will open a overlay with the available destination
fields to select.
The added fields are displayed in two columns: the destination field name on the right and the source value column on the left. The source values are typically fields from the source list, directly inserted into the expression field. Alternatively, they can be expressions that generate values or values derived from other fields through expressions.