Skip to content

Set customer shipment metafield

Writes a single metafield value on a Fulfil customer shipment. To write several at once, use Set metafields for customer shipment.

This action works with Fulfil only.

Inputs

  • Customer shipment ID (required): the Fulfil customer shipment to update. Take it from Get all customer shipments.
  • Metafield ID (required): the ID of the metafield definition, as returned by Get metafield.
  • Value (required): the value to store.

Packwork has to know the metafield before it can write it. Run Get metafield for it at least once, in this Flow or any other.

Choice metafields

For a metafield of the choice type, you don’t need the ID of the option. Packwork matches the value against the option’s name first, then its code, then its ID, without caring about capitals. So Express, express and the option’s ID all work.

What it returns

  • ID: the customer shipment ID

When it fails

  • A metafield Packwork hasn’t loaded yet: “Run the Get metafield action first to load this metafield definition.”
  • A value that isn’t one of the options of a choice metafield: the error names the metafield and lists the valid options.
  • Fulfil rejects the update: “We were unable to update the metafield in Fulfil at this time.”

Typical use

Store which sales channel or campaign an order came from on the shipment, so your warehouse reports in Fulfil can group by it.