Hi, Can I check whether a webook(let's say order/update) is triggered due to a bulk edit action? I have to prevent the webhooks triggered during a bulk edit action.Is there a possible way?
Hey @sanjeev_kmr ,
the best way to find out for sure is to set up the respective webhook and see if it reacts to the action you are looking for.
In our experience some of the UI driven (Shopify Admin) bulk actions related to products do not invoke webhooks.
The webhooks are triggered for both the activities(bulk edit order as well as editing a single order). I have to find out and prevent the webhooks that are triggered only during a bulk edit operation.
ah, I misread the topic of your post.
No, unfortunately the payload of the webhook call doesn't have any information about the action that triggers it.
However the information about order modification history may be available via the GraphQL api for the order - https://help.shopify.com/en/api/graphql-admin-api/reference/object/order , as it has a collection of events associated with it.