Webhook Jinja Templating Custom Fields #18125
-
Hello, I want to use Jinja templating in the webhook body. However each and every VLANs could be for different Tenants, so I need to fetch TenantID for the tenant of the vlan created.
As you can see there is no field "custom_fields" in the tenant dict... Thanks so much for any solutions provided ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, I noticed this issue has been closed. Did you manage to figure this one out ? Thanks! |
Beta Was this translation helpful? Give feedback.
Yes, I figured it out, but it is messy. I think this is really not the way to go.
My webhook is triggered when a VLAN Object is created. Since I needed the django methods of this object, I created a netbox script that would receive exactly the infos I needed from the webhook and then did whatever I wanted it to, fetching the custom field data ? easy in a netbox script.
The webhook would trigger this script :