Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Get changed fields on products/update webhook

Get changed fields on products/update webhook

InCrescendoSrl
Excursionist
12 1 3

Hi,

 

I have a question about the products/update webhook. Is it somehow possible to know what changed about a specific product, when the webhook is fired?

 

Right now, I just get the entire product whatever happens.

 

Thanks!

Replies 2 (2)

_JB
Shopify Staff (Retired)
836 100 223

Hey @InCrescendoSrl,

 

Webhooks will always contain all details about the object it pertains to. If you want to keep track of what changed you'll need to store the values for each object you're tracking, and compare those with the values in the payload when a webhook fires.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Subash-Ghimire
Shopify Partner
13 0 1

@_JB 
Hi JB,
Is it possible to get only the specific fields when event (update/delete/create) occurs in shopify using Shopify Event Bridge and GraphQL ?