Replace Item in Collection
Description
This part allows the user to alter a specified value in a collection to a new value. It is similar to the Change Item in a Collection part but acts on values rather than positions in the collection
- Replace Item part changes one or more values, based on specifying an existing value (ie replace "In Progress" value with "Work In Progress")
- Change Item part changes a specific value at a given position in the collection (ie replace the value held at position 2 with "Work In Progress")
This part will change a value regardless of its position in the collection, while the Change Item part will change the value of a position, regardless of its current value.
Use
This part allows the user to have the system change values in a collection instead of having to recreate the collection. It can be useful when redefining product names, status labels, etc.
Editor Fields
Field Name |
Description |
Type/Options |
Optional/Mandatory |
| Input collection | This is the name of the collection being targeted. | Data Object | Mandatory |
| Old value | Enter the value to be replaced. This can also be parameterized using $(...) | Data Object | Mandatory |
| New value | Enter the value to be substituted in for the old value. This can also be parameterized using $(...) | Data Object | Mandatory |
| Value-key | This will limit the scope of the replacement to the specific key (applies for a complex collection only). This prevents the part from changing the value everywhere. | Text | Optional |
| Result collection | This is the name of the collection that stores the updated values. | Data Object | Mandatory |
| Save in log | Select yes to store the result collection in the log. | No | Yes | Mandatory |
Example
For an example of how to use the Replace Item in Collection part, download the project in the Community Portal Shared Workspace. (see Instructions for Using Example Projects here).
Reply
Content aside
- 6 yrs agoLast active
- 26Views
-
2
Following
