Webhook config #18166
-
{ I made this for a telegram alert and everything its ok except the field "Modified fields" that always pick the default response, y tried using previous.data to compare other fields but never it never takes the changes. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here is the list: https://netboxlabs.com/docs/netbox/en/stable/integrations/webhooks/#available-context There's no value called "changed_fields". But there are |
Beta Was this translation helpful? Give feedback.
Here is the list: https://netboxlabs.com/docs/netbox/en/stable/integrations/webhooks/#available-context
There's no value called "changed_fields". But there are
snapshots["prechange"]
andsnapshots["postchange"]
. You could iterate over these and compare them. Note thatsnapshots["prechange"]
can be null for a newly-created object, and I thinksnapshots["postchange"]
can be null for a deleted object.