[ { "label": "Transfer customer metafields to an order note", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": [ { "type": "order_add_note", "settings": { "token_object_type": "order", "note": "{{ order.customer.metafields.NAMESPACE['KEY'].value | raw }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "order" } ] } }, "instructions": "## SETUP\r\n\r\nGeneric metafields can be added using the following format:\r\n\r\n`{{ order.customer.metafields.MY_NAMESPACE.MY_KEY.value }}`\r\n\r\nMetafields managed by Custom Fields will generally use the `custom_fields` namespace. For example you might use: \r\n\r\n`{{ order.customer.metafields.custom_fields.MY_KEY.value }}`\r\n\r\nMetafields managed by Customer Account Fields use the `cf_app` namespace. For example you might use:\r\n\r\n`{{ order.customer.metafields.cf_app.MY_KEY.value }}`\r\n", "shared_workflow_id": 584 }, "description": "This workflow fires when an order is paid. The workflow will add any specified metafields to the order note. Simply add your target fields to the action settings." } ]