Skip to content

Snapshot Prechange null in Webhook generated by Custom Script Change #10397

Answered by kkthxbye-code
boomsfib asked this question in Q&A
Discussion options

You must be logged in to vote

You have to call object.snapshot() before modifying it. Netbox does this internally when fetching the object, but you must do it yourself in custom scripts.

There's an accepted issue for documenting this in the custom script documentation.

#9651

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boomsfib
Comment options

Answer selected by boomsfib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants