roger at February 16th, 2016 07:18 — #1
We awant to get alerted by webhooks only when a contact reaches a particular status, so we can pick those up by api, Is this possible through Webhooks ? from What I can see this looks like webhooks seem to be only for creation of contacts.
Does anyone know of a way to make this work so it only triggers when a contact reaches a certain stage ?
cillian at February 16th, 2016 09:44 — #2
Thanks very much for getting in contact with your query!
Webhooks are currently sent for any newly created or updated resources; we do not provide any further granularity on why or which webhooks are sent.
To do what you are proposing (for contacts for example), you would have to have a local copy of the info (contact). Then when you receive the webhook (with the updated contact), you would have to do a manual diff to check if the field (status) had changed, and if it had changed to value you are looking for.
I hope this helps.
All the best,
josefrichter at April 7th, 2017 07:32 — #3
Hi Cillian, would it be too much to send along the pre-update json in the payload too? Because if you send 'updated' payload without any indication what got updated, it does require a database on recipient side to make anything out of it.
That's a big problem with tools like Zapier, where you can do a lot of magic with the webhooks and simulate a lot of functionality that is not yet in OnePageCRM.
cillian at April 10th, 2017 12:06 — #4
I see how this would be beneficial information to you, if you did not want to keep a local copy of the contacts etc.
However, this is not something which we are planning to add anytime soon. It's a non-trivial change which has a much lower priority than the larger features we are currently working to release.
I have taken note of your suggestion, and I will put it forward for review to be added in future. It has been suggested before here that we have user-selective webhooks and I think this would fit into that idea.
Sorry for any inconvenience caused, and thanks for taking the time to give us the feedback!
All the best,