variables = {
“handle”: “hbt”,
“payload”: {
“submission”: {
“fields”: [
{ “label”: “order_id”, “value”: “gid://shopify/Order/6897979989797” },
{ “label”: “SKU”, “value”: “1L” },
{ “label”: “Size”, “value”: “M” },
{ “label”: “Action”, “value”: “cn_code” },
{ “label”: “Value”, “value”: “3000” }
]
}
}
}
I created a custom trigger named hbt. Whenever I try to send the payload, as shown above, it always returns the message shown below.
“data”: {
“flowTriggerReceive”: {
“userErrors”: [
{
“field”: [
“body”
],
“message”: “Errors validating schema:\n Invalid handle ‘hbt’.\n”
}
]
}
shopify.extension file is shown below.
[[extensions]]
name = “hbt”
handle = “hbt”
type = “flow_trigger”
uid = “”
description = “”
schema = “./schema.graphql”
return_type_ref = “Submission”
[settings]
[[settings.fields]]
key = “submission”
type = “schema.Submission”
description = “”