Skip to content

Fortified IDDocs

Item Property Copy

Valve for copying item properties. The operation is performed on one item at a time and does not support copying between items.

Use item_include_expr to control which items are processed (see Item).

NameDescriptionDefault valueMandatoryExpanded
srcProperty to copy from.
destProperty to copy to.
replaceReplace destination. If true existing value of dest will be replaced with new values (overwritten), otherwise new values will be added.false
filterInclude value predicate. Expression controlling if a value should be copied or not. If not specified, all values are copied. For more information see below.

Predicate expression that determines whether a value should be copied. The expression is written in JavaScript and must return true (to copy the value) or false (to skip it).

The following scopes are available:

NameDescriptionExample
valueThe current value"value.startsWith('__')"
itemThe current item"item.id === 'tmp'"
sessionThe current session"session.addProp === true"
stateThe current pipe state"state.itemComplete === false"
requestThe current pipe (NOT HTTP) request. Contains all parameters sent to the pipe."request.username != null"
itemsThe current set of items"items.size > 1"
exportsThe current exported (from authenticators or other valves) properties"!exports.done"