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
836 100 222

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 Expert
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 ?