On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Overview
This Snap modifies the structure of an incoming document. It can reuse the source document's data or create new data structures (list/map). When the Snap reuses source data, all untouched values will be preserved after all the operations are executed; so a source path can be moved multiple times. However, a target path cannot be the target of a move, otherwise the pipeline will fail. In addition, if a source path is deleted, then the path will not exist after it is executed. Paths can also be updated and the original value will not be deleted.
Note |
---|
If the source and target structures are the same, you do not need to use this Snap. |
There are five cases for update:
Update value - the value is replaced
Example:
Source Data | Pass Through | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|
| Yes | $first_name | update | $last_name |
|
Update map - key in map is updated
Example:
Source Data | Pass Through | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|
| Yes | $first_name | update | $address |
|
Update list - value is appended to list
Example:
Source Data | Pass Through | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|
| Yes | $first_name | update | $names |
|
Update list of maps - value is added to each map of the list
Note: If a list does not have all the same type scalar, map, or list, then the pipeline will fail.
Example:
Source Data | Pass Through | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|
| Yes | $first_name | update | $customers |
|
Update list of lists - value is appended to the end of each list
Note: If a list does not have all the same type scalar, map, or list, then the pipeline will fail.
Example:
Source Data | Pass Through | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|
| Yes | $first_name | update | $list_of_lists |
|
Prerequisites
None.
Configuring Accounts
Accounts are not used with thisSnap
.ConfiguringViews
Input | This Snap has exactly one document input view. |
---|---|
Output | This Snap has exactly one document output view. |
Error | This Snap has at most one document error view and produces zero or more documents in the view. |
Troubleshooting
None. |
Support
Works in Ultra Pipelines
.Known Issues
None.
Snap Settings
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | ||||
---|---|---|---|---|---|
Pass Through | Required. Determine if data should be passed through or not. If set to yes, then the input data and its structure will be used. However, the output data structure can be changed by setting pass through to [None] - new map or [None] - new list. For example, if the input data is a key/value (map) structure, then the output structure can be changed to a list by setting pass through to [None] - new list and using target paths of list indices ($[0], $[1], $[2], etc).
Default value: Yes | ||||
Mapping Table | Required. Source path, operation, and target path to use in the Snap. Source path is the JSONPath to move/delete. Operation is the type of operation to execute (move/delete). Target path is the JSONPath to write a value to in a move operation. Source Path | Operation | Target Path $first_name | move | $name.first $phone_num | delete | $names[2] | delete | $names[*].first | move | $first_names Default value: none | ||||
Multiexcerpt include macro | |||||
Snap Execution | |||||
page | Anaplan Read | Multiexcerpt include macro | | ||
name | Snap_Execution_Introduced | page | Anaplan Read
Example Output
Source Data | Pass Through | Null-safe access | Source Path | Operation | Target Path | Target Data | ||||
---|---|---|---|---|---|---|---|---|---|---|
| Yes | Deselected | $first_name | move | $fname |
| ||||
| [None] - new map | Deselected | $first_name | move | $fname |
| ||||
| [None] - new list | Deselected | $first_name | move | $[0].fname |
| ||||
| Yes | Deselected | $mid_name | move | $middle | Pipeline fails | ||||
| Yes | Selected | $mid_name | move | $middle |
| ||||
| Yes | Deselected | $mid_name | delete | Pipeline fails | |||||
| Yes | Deselected | $person.first | move | $first |
| ||||
| Yes | Selected | $first_name $first_name | move | $name1 $name2 |
| ||||
| Yes | Deselected | $mid_name | delete |
|
Examples
See Also
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|