Why is a Webhook Integration Event not a CancelableEvent #2254
-
Hello, I have a quick question regarding webhook handling. We have a site that integrates both HubSpot and a Zapier webhook. Based on the utm_content parameter, I send the payload either to HubSpot or Zapier. For HubSpot integration, I can easily cancel the event if it's not needed. However, for the Zapier webhook, I am unable to cancel the event. I understand that the webhook event is not a CancelableEvent in the code. Could anyone explain why this is the case? While I can send an empty payload, I would prefer to cancel the event entirely. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What event are you using, or trying to use? Using the beforeSendPayload and setting |
Beta Was this translation helpful? Give feedback.
What event are you using, or trying to use? Using the beforeSendPayload and setting
$event->isValid = false
should do the trick.