trigger function creates a trigger object that can be referenced by a custom component. Triggers are the entry point of an integration flow — they receive an inbound request or event and pass a payload to the flow’s subsequent action steps.
Function signature
Parameters
An object describing the trigger. See fields below.
TriggerDefinition fields
Controls how the trigger appears in the Prismatic UI.
The async function that runs when this trigger is invoked. Receives
context, payload, and params.A record of input field definitions presented to the integration builder. See
input.Whether this trigger supports execution on a recurring schedule.
"invalid"— schedule is not supported"valid"— schedule is optional"required"— schedule must be configured
Whether this trigger supports synchronous HTTP responses back to the caller.
"invalid"— synchronous response is not supported"valid"— synchronous response is optional"required"— synchronous response must be configured
An async function called when an instance using this trigger is deployed. Use to register webhooks with external services.
An async function called when an instance using this trigger is deleted. Use to deregister webhooks from external services.
Optional handlers for creating and deleting webhooks independently of instance deploy/delete lifecycle.
When
true, terminates execution after the trigger runs.When
true, breaks out of the enclosing loop step.When
true, this trigger supports conditional branching.Static branch names when
allowsBranching is true.Key of the input field that determines branch names dynamically.
Example return value from
perform, used to preview output shape in the UI.Return type
Theperform function must return a Promise resolving to a TriggerResult:
The trigger payload passed through to subsequent steps in the flow.
HTTP response to send back to the caller when
synchronousResponseSupport is "valid" or "required".Values to persist in the flow-specific instance state.
Values to persist in the cross-flow state.
Values to persist for the duration of the current execution.
Values to persist across all flows and versions of an integration instance.
Required when
allowsBranching is true. The name of the branch to take.Set to
true in a polling trigger result to indicate no new data was found.Set by the platform to indicate whether the trigger failed.
Set by the platform with error details when the trigger fails.
Example
Related
pollingTrigger— Define a polling-based triggerinput— Define inputs for a triggercomponent— Register triggers in a componentaction— Define an action step
