Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I've seen this listed elsewhere on the forum but haven't seen a clear answer.
1. Our webhook is firing.
2. Zoho CRM is receiving the data except the data is the stock Shopify data.
3. we need to retrieve additional metafields from 3rd party app "Customer Fields".
I've been speaking with Kyle in Customer Fields support team, this is what he said:
Hi @benkweller,
Michael here from Customer Fields. Are you aware of the Zapier integration coming soon? You can request beta access here: https://customr.myshopify.com/pages/zapier-beta-signup
If all else fails, Zapier should be a surefire way to get that data into Zoho.
Did you ever find a solution for this, other than the Customer Fields Zapier integration (which I think is only available on the most expensive plan?)
When creating a webhook within the Shopify Admin UI, there are very limited options -- basically only the URL to POST to and what to subscribe to. I'd like to subscribe to the customer create and updated hooks and have some metafields included. Can anyone help with how to accomplish this?
If this isn't available out-of-the-box, when you receive the webhook you could just perform an API request back to Shopify to pull the metafields you need associated with the record ID passed to you in the originating webhook. I know that's just another step and not a one-shot solution. But it works while you're waiting for webhooks to have extended functionality they don't currently have...
From what I've read you'll need a PUT request to the relevant webhook ID subscription to modify the data that is sent with that webhook.
Something like...
PUT /admin/api/2020-07/webhooks/[webhookid123].json
With a body of:
{
"webhook": {
"id": "webhookid123",
"metafield_namespaces": [
"namespace_name"
]
}
}
Just my reading of the docs though - I'm not at a laptop to test this...
I think I sorted my issue, but it would be helpful to fully understand this. So this would just be a one-time PUT request to modify a webhook I've already created via the Shopify Admin -- am I understanding that right? How would such a request be authenticated? With a developer API key?
Thanks for this.
Good point! If I can't figure out another solution this would work for now.
Sorry, there's currently no way to configure the metafields that you would like returned with the webhook via the Shopify Admin UI. You can, however, do this if you create the webhook via the Admin API. This is done using the metafieldNamespaces
input for the GraphQL API and the metafield_namespaces
property for the REST API. I hope this helps.
To learn more visit the Shopify Help Center or the Community Blog.