[ { "label": "Change fulfillment location based on tags ", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "order.tags_array", "settings": { "multiple": "any", "operator": "equals", "value": "custom-tag", "long_value": "", "token_object_type": "order", "condition_type": "AND" }, "weight": 10 }, "3": { "field": "order.fulfillment_orders.assigned_location_id", "settings": { "multiple": "any", "operator": "any", "value": { "8203337775": "8203337775", "36688363567": 0 }, "condition_type": "AND" }, "weight": 20 }, "4": { "field": "order.fulfillment_orders.movable_to", "settings": { "multiple": "any", "value": "36688363567", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "trigger_child_workflow", "settings": { "target_path": "order.fulfillment_orders", "exported_workflow": { "label": "Fulfillment Order subworkflow", "trigger_type": [ "manual" ], "object_type": "fulfillment_order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "fulfillment_order.status", "settings": { "operator": "any", "value": { "open": "open" } }, "weight": 999 }, "2": { "field": "fulfillment_order.movable_to", "settings": { "multiple": "any", "value": "36688363567", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "fulfillment_order_move", "settings": { "wait": "0", "custom_wait": "", "location_id": "36688363567" }, "weight": 999, "target_key": "fulfillment_order" } } } } } } }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 42339 }, "description": "This automation will change the order's fulfillment location based on assigned tags. Simply enter the tags you want it to trigger on and select the fulfillment location you'd like to fulfill the order from." } ]