Accessing a webhook payload from a notebook

452
1
08-11-2022 12:27 AM
MatejVrtich
Esri Contributor

Hi,

How to access a webhook payload in a notebook executed via a webhook event?

There is a documentation: Automate a notebook using webhooks, describing how to setup a webhook with a notebook listenere, however, there is no example on how to use a webhook payload inside a notebook.

Thanks,

Matej

1 Reply
MatejVrtich
Esri Contributor

For anyone looking for an answer, the webhook's payload is injected into a notebook automatically as a global variable named "webhookPayload".

Do not declare the variable "webhookPayload" in a notebook, just use it, oterwise it will overwrite the injected one.

Matej