forked from lightward/mechanic-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto-tag-new-customers.json
20 lines (20 loc) · 1.16 KB
/
auto-tag-new-customers.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"docs": "This task tags every new customer, with the same configurable tag. :)\n\nThis task tags new customers, as their accounts are created.\r\n\r\nTo tag all of your existing customers at once, open the \"Customers\" section of your store, then click the checkbox in the upper-right corner of the list. You'll then see an option to \"Select all 50+ customers in your store\". Click it, then use the \"Actions\" -> \"Add tags\" menu item to tag all customers.",
"halt_action_run_sequence_on_error": false,
"name": "Auto-tag new customers",
"online_store_javascript": null,
"options": {
"tag__required": ""
},
"order_status_javascript": null,
"perform_action_runs_in_sequence": false,
"script": "{% action \"shopify\" %}\n mutation {\n tagsAdd(\n id: {{ customer.admin_graphql_api_id | default: \"gid://shopify/Customer/1234567890\" | json }}\n tags: {{ options.tag__required | json }}\n ) {\n userErrors {\n field\n message\n }\n }\n }\n{% endaction %}",
"subscriptions": [
"shopify/customers/create"
],
"subscriptions_template": "shopify/customers/create",
"tags": [
"Auto-Tag",
"Customers"
]
}