You are here: Reference > Rule types > Data Transforms > Data Transform form - Append and Map to action

Data Transform form - Append and Map to action

Usage

Use the Append and Map to action to append a page to the target Page List mode property and set the context to that page for subsequent child actions to map properties on that page. The target and source can be of different Applies To classes.

The Append and Map to action is equivalent to doing an Update Page action using the <APPEND> keyword. When the system invokes the Append and Map to action, it creates a new page in the target Page List property, without creating any embedded properties in that new page. Then, subsequent children actions create the embedded properties on the page.

When you select the Append and Map to action, the system automatically displays a child Set action, because no properties yet exist on the newly created page.

When using a Source that is a Page List or a Page Group property (using the each page in choice for the Relation), the When icon appears next to the each page in choice. Click this button to specify a when condition rule for the Append and Map to action, so that a page from the source is appended to the target only if the condition is true. For example, when your target is a Page List property of PreferredCustomers, and you want to map data from an AllCustomers source Page List property only for those customers that are "preferred" customers, click the When icon and specify a when condition rule named IsPreferred.

JSON data model format

When the data model format for a data transform is JSON, there are the following differences in behavior from the clipboard data model format:

In addition, the JSON field requires a JSON array name.

Example

Append and Map topyWorkPage

Relationship settings

The following relationship settings are available when the data model format is clipboard:

The following relationship settings are available when the data model format is JSON. Select the setting that matches the structure of the JSON array.

Supported features

You can use the following items in the Append and Map to action:

Restrictions

You cannot specify a Page Group mode property as the target for the Append and Map to action. That is, you cannot append to a Page Group mode property using this action.

About Data Transforms