Pipes
2025.9 Pipes
2025.9 Pipes
  • Introduction
  • Configuration
  • Valves
    • API
      • HTTP Response Format Valve
    • Azure
      • Get User
      • Get User Role
      • Is User in Group
    • BankID
      • BidOperation
      • BidToItems
    • Cef event
    • Codecs
      • Base64 Encode
      • Base64 Decode
      • Base64 Converter
    • DateTime
      • Instant Generator
      • Instant Transformer
      • MS Date to Instant Transformer
      • Instant to MS Date Transformer
    • Debug
      • Dump Exports
      • Dump Request
      • Dump Session
      • Dump State
      • Wait
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • EntraID
      • Users
        • Create User
        • Update User
        • Delete User
        • Get User
        • List Users
        • Get Groups
        • List Groups
        • List Direct Reports
        • List Owned Objects
        • Reset Password
      • Groups
        • Create Group
        • Update Group
        • Delete Group
        • List Groups
        • Add Group To Users
        • Remove Group From Users
        • Add User To Groups
        • Remove User From Groups
        • Add Group Owner
        • Remove Group Owner
      • Directory
        • Restore Deleted Item
    • Exports
      • Exports Put
      • Exports Remove
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Freja
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • Item
      • Item Create
      • Item Merge
      • Item Match Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Copy
      • Item Property Replace
      • Item Property Split
      • Item Property Rename
      • Item Property Hash
      • Item Property Token Replace
      • MV Property To Items
      • JSON To Items
      • MV Property Join
    • JDBC Query
    • JSON
      • JsonObjectCreate
    • JWT
      • CreateJwt
      • ParseJwt
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Delete
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • Microsoft AD
      • Add Member To Groups
      • Remove Member From Groups
      • Add Group To Members
      • Remove Group From Members
      • GUID to string
    • Misc
      • Basic Auth
    • OTP
      • OTP Generation
      • OTP Validation
    • PKI
      • X509 Certificate Extractor
      • X509 Certificate Validator
      • Passcode Generator
    • PDF
      • Html2Pdf
      • PDFMerge
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • ScriptEval
    • MobilSITHS
    • Session
      • Session Put
      • Session Create
      • CopyFromSession
    • Tokens
      • Token Authentication
    • WorkOrders
      • WorkOrderCreate
Powered by GitBook
On this page
  • Configuration
  • Include value predicate
  1. Valves
  2. Item

Item Property Copy

PreviousItem Property AddNextItem Property Replace

Last updated 1 month ago

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 ).

Configuration

Valve name: ItemPropertyCopy

Name
Description
Default value
Mandatory
Expanded

src

Property to copy from.

dest

Property to copy to.

replace

Replace destination. If true existing value of dest will be replaced with new values (overwritten), otherwise new values will be added.

false

filter

Include value predicate. Expression controlling if a value should be copied or not. If not specified, all values are copied. For more information see below.

{
    "name":"ItemPropertyCopy",
    "config":{
        "item_include_expr": "item.id.startsWith('tmp_')",
        "src": "from",
        "dest": "to",
        "replace": false,
        "filter": "value !== ''"
    }
}

Include value predicate

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).

Scopes

The following scopes are available:

Name
Description
Example

value

The current value

"value.startsWith('__')"

item

The current item

"item.id === 'tmp'"

session

The current session

"session.addProp === true"

state

The current pipe state

"state.itemComplete === false"

request

The current pipe (NOT HTTP) request. Contains all parameters sent to the pipe.

"request.username != null"

items

The current set of items

"items.size > 1"

exports

The current exported (from authenticators or other valves) properties

"!exports.done"

Since item properties are multi valued, values must be indexed (item.value[0]) in expressions or use functions from the mv extension library (mv.contains(item.value, 'value')).

Item