Get metafield
Looks up a Fulfil metafield definition by its code or name and returns it. The ID it returns is what Set customer shipment metafield and Set metafields for customer shipment need.
This action works with Fulfil only.
Inputs
- Code or name (required): the metafield’s code or its display name. An exact code wins over a name.
- Model (required): the Fulfil model the metafield belongs to. For customer shipments that’s
stock.shipment.out.
The same code can exist on several models, so the model is required to pick the right one.
What it returns
- ID: the Fulfil ID of the metafield definition
- Name: its display name
- Code: its code
- Description: its description, when it has one
Run it once before you set values
Packwork remembers every metafield definition it has looked up. The set actions only accept metafields Packwork already knows, and fail with “Run the Get metafield action first to load this metafield definition” otherwise.
So run Get metafield at least once for each metafield you want to write. After that, the ID never changes, and you can type it straight into the set actions and drop this step from your Flow.
When it fails
A code or name that doesn’t exist on that model fails the step as not found.