Trying to determine if the includedFields in webhook subscription control whether webhooks fire only for those fields changing (on an a product update trigger for example).
From some tests I've done, I'm definitely seeing that to be the case, but not consistently.
I have A set up with includedFields = tags, B with title, body_html, and C with price.
I think price was probably an invalid field to use since it's on the variant.
When I change a tag and save, only A fires.
Changing price caused B and C to fire.
Changing body content causes only B to fire.
Thanks for flagging this - it does appear to be the case that webhooks will fire only for those fields which are specified - as you've found, and it's important to note that the payload of the webhook will still include the entire record, not just the fields specified in
includeFields. I've gotten in touch with the events product team to confirm this and to look at the inconsistencies you've highlighted, and determine if the docs should be updated to clarify the behaviour you've noted.
Hey Liam - do you know which fields it looks at? Have done some tests with title, tags that have worked. But I tried publishedOnPublication and it didn't seem to work.