Some of the most useful and used triggers for our webhooks are those revolving around records creation/update/deletion, and when it comes to a "record update" event, it is very common the need to know exactly what has changed. So far, it was not that easy to get that information.
Well, now it is! For "record update" events, the webhook payload now presents the record data both before the update operation (previous_entity
) and after (entity
), making diffs extremely easy on your end.
Integrations/automations like "only do X if the title has changed" are like 1000% faster to develop:
{"environment": "foo-bar","entity_type": "item","event_type": "update","entity": {"id": "39830648","type": "item","attributes": {"name": "Mark Smith",},"relationships": { ... },"meta": { ... }},"previous_entity": {"id": "39830648","type": "item","attributes": {"name": "John Smith",},"relationships": { ... },"meta": { ... }}}