Skip to main content
Takes a part of the entity data and moves it somewhere else in the structure. It works just like Copy using an accessor, except the original data is removed once it has been placed in its new location. Because you choose a way of reading values for the source and a way of writing them for the destination, you can move several matching values at once, such as lifting every line item’s SKU out into a separate list. Use this to reshape an entity rather than duplicate data.

Fields

Sample data

FieldValue
SourcePattern accessor matching order.items.*.sku
DestinationKey accessor with root skus
Strip enclosures from keysOn (default)
Input:
{
    "order": {
        "items": [
            { "sku": "A1", "qty": 2 },
            { "sku": "B2", "qty": 5 }
        ]
    }
}
Output:
{
    "order": {
        "items": [
            { "qty": 2 },
            { "qty": 5 }
        ]
    },
    "skus": {
        "order": {
            "items": [
                { "sku": "A1" },
                { "sku": "B2" }
            ]
        }
    }
}
Every matched SKU has been moved out of the line items and into the new skus location, so order.items now only carries the quantities.