craftcms / webhooks

Plugin for integrating Craft with Zapier and IFTTT.
https://plugins.craftcms.com/webhooks
MIT License
84 stars 12 forks source link

[FR] Ability to filter event based on object status #14

Closed minyan-gu closed 5 years ago

minyan-gu commented 5 years ago

Craft 3.2 autosave fires many events and majority of them I don't care at webhook level, since these events are generated from Draft/Revision objects.

It will be good to add a filter option on event's entry fields, e.g. isNew, isDraft, isRevision For our use case, we only want the webhook make a request when the entry contains below field values:

"isDraft": false
"isRevision": false

@brandonkelly

brandonkelly commented 5 years ago

We just released Webhooks 2.1.0 with this:

Event Filters
minyan-gu commented 5 years ago

This is PERFECT!! Thank you Brandon for quickly adding this new feature to resolve our issue with craft 3.2 autosave, much appreciated!

isjackwild commented 4 years ago

This is super useful! However — what does the dot in the middle mean? I understand the tick and the cross but the dot is a bit of a mystery ;)