[ { "label": "Manually set the inventory level at a location", "trigger_type": [ "product_custom" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "2": { "type": "trigger_child_workflow", "settings": { "target_path": "product.variants", "exported_workflow": { "label": "Variant subworkflow", "trigger_type": [ "manual" ], "object_type": "product_variant", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "2": { "type": "change_inventory", "settings": { "token_object_type": "product_variant", "update_type": "set", "location_id": "10405838966", "inventory_new_amount": "{{ workflow_vars[\"quantity\"].value }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 1009, "target_key": "product_variant" } } } } } } }, "weight": 20, "target_key": "product" } } } }, "instructions": "## Setup\r\nClick into the Subworkflow action below and set the location this workflow will use. \r\nSet the default quantity under Variables below. The variable will be used in the subworkflow. \r\n\r\n## Run\r\nTrigger this manually from Shopify's \"More Actions\" menu on a product. The quantity can be overridden during each run.\r\n\r\n", "shared_workflow_id": 19727 }, "description": "This workflow is designed to be run on-demand. The workflow sets the inventory level for all variants in a specific product to a pre-defined quantity. ", "variables": { "quantity": { "label": "Quantity", "machine_name": "quantity", "type": "triggers_number", "settings": { "can_be_disabled": true, "disabled": false, "attributes": { "width": null, "bulk_ops_editable": 1, "input_instructions": "Enter the quantity to set the inventory amount to.", "description": "", "step": "", "default_value": "1" }, "weight": 6, "validations": [], "conditions": [] } } } } ]