[ { "version": 1, "label": "Set product metafields for items in an order when an order is created", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "trigger_child_workflow", "settings": { "target_path": "order.line_items.product", "exported_workflow": { "version": 1, "label": "Product subworkflow", "trigger_type": [ "manual" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "product_set_metafield_value", "settings": { "wait": "0", "custom_wait": "", "namespace": "global", "key": "origin_iso", "value_type": "string", "value": "my-value", "token_object_type": "product" }, "weight": 999, "target_key": "product" }, "2": { "type": "product_set_metafield_value", "settings": { "wait": "0", "custom_wait": "", "namespace": "global", "key": "hstarif_number", "value_type": "string", "value": "my-value", "token_object_type": "product" }, "weight": 1009, "target_key": "product" } } } } } } }, "weight": 999, "target_key": "order" } } } } }, "description": "This automation will loop through all items in an order an set the metafield value for each product in the order with a pre-defined value. " } ]