[ { "label": "Delete a draft order after it becomes a real order", "trigger_type": [ "draft_order_updated", "draft_order_created" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "condition_groups": { "1": { "conditions": { "1": { "field": "draft_order.status", "settings": { "operator": "any", "value": { "completed": "completed", "open": 0, "invoice_sent": 0 }, "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "any_delete_resource", "settings": { "wait": "0", "custom_wait": "", "token_object_type": "draft_order", "resource_type": "draft_orders", "resource_id": "{{ draft_order.id }}" }, "weight": 999, "target_key": "draft_order" } } } }, "shared_workflow_id": 25222 } } ]