Is there a way to know, whether a webhook is triggered due to a bulk edit?

New Member
3 0 0

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?

0 Likes

Hey @sanjeev_ ,

 

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. 

Alex Dereveanco | CMO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Highlighted
New Member
3 0 0

Hi @Alexandru_Derev 

 

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.

0 Likes

@sanjeev_,

 

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. 

 

 

Alex Dereveanco | CMO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like