{% set shipment = hookable_metadata.context.resource %} {% for unit in shipment.units %} {% set item = unit.orderItem %} {% hook 'body' with { item } %} {% endfor %}