Tags: Draft Orders, Order Attributes
When a new order is created from a draft order, this task will automatically add the draft order ID and/or name to the custom attributes of the new order.
- View in the task library: tasks.mechanic.dev/auto-add-the-draft-order-id-to-an-orders-attributes
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"order_attribute_name_for_storing_the_draft_order_id": "Draft Order ID",
"order_attribute_name_for_storing_the_draft_order_name": "Draft Order Name"
}
Learn about task options in Mechanic
shopify/orders/create
Learn about event subscriptions in Mechanic
When a new order is created from a draft order, this task will automatically add the draft order ID and/or name to the custom attributes of the new order.
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!