Access the Trigger Payload#
6.0 One
Every workflow run in TheHive Flow, whatever started it, exposes a built-in $input.payload variable carrying the data received by the trigger that started the run. Unlike entry variables, it requires no declaration and no input mapping. Insert it in a node with the $var button, or by typing $ and selecting it from the suggestions. An inserted reference is displayed as $input.payload.
Fields available in every run#
trigger_kind: How the run started, withwebhookfor a Webhook trigger,schedulefor a Scheduler trigger, oruserfor a manual run from the workflow editor or a case or alert pagetrigger_id: The identifier of the trigger that started the run, or of the user for a manual runtriggered_at: The UTC timestamp of when the run was triggered
Additional fields from a Webhook trigger#
body: The JSON body of the incoming requestheaders: The request headers. Credential headers such asAuthorizationorCookieare redacted.query: The query string parameters of the webhook URLmethod: The HTTP method of the requestform: The form fields of a request sent asmultipart/form-databody_kind: How the request body reached the payload
The body field is present only when the request body is valid JSON small enough to stay inline. The body_kind field is always present and reports which of the four cases applies:
inline: The body is valid JSON small enough to stay inline, andbodyholds its parsed value.promoted: The body isn't inline JSON, whether a non-JSON content type at any size, invalid JSON, JSON null, or JSON at or above the inline limit.bodyis absent.empty: The request carried no readable body, either none at all or amultipart/form-databody, whose parts reach the payload asforminstead.bodyis absent.too_large: The whole payload exceeded its 256 KiB limit, so the body was dropped to fit.bodyis absent.
When the body isn't in the payload, assign it to an entry variable with $request.body in the input mapping of the Webhook trigger instead.
Additional fields from a manual run#
A manual run adds the variables supplied with the run, by name: a run from a case or alert page adds the entity identifier, while a run from the workflow editor adds nothing, as no input can be passed there. A Scheduler trigger adds no fields.
payload_trimmed: Set totruewhen the payload exceeded its size limit and fields were dropped to fit. It reports that a drop happened, not which fields went, and it's absent when nothing was dropped.