[ { "label": "Get an email if order fulfillment fails", "trigger_type": [ "fulfillment_event_created" ], "object_type": "fulfillment_event", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "fulfillment_event.status", "settings": { "operator": "any", "value": { "failure": "failure", "confirmed": 0, "in_transit": 0, "out_for_delivery": 0, "delivered": 0 } }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "run_once": 0, "custom_wait": "", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "Fulfillment failed for order #{{ fulfillment_event.order.number }}", "plain_text": "1", "body": "

\r\n{{ fulfillment_event.fulfillment.tracking_company }} has reported a failed fulfillment.\r\n\r\n{% if fulfillment_event.message is not empty %}\r\n \r\n Message from the tracking company:\r\n

{{ fulfillment_event.message }}<\/blockquote>\r\n{% endif %}\r\n\r\n<\/p>\r\n\r\n

\r\nView this order in Shopify: #{{ fulfillment_event.order.number }}<\/a>\r\n<\/p>\r\n\r\n

\r\nRegards,\r\nArigato Automation\r\n<\/p>", "token_object_type": "fulfillment_event" }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 11 }, "description": "Stay aware of failed fulfillments to quickly take action." } ]