Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Webhook functions are groovy scripts which are executed when a webhook is received by FlexDeploy. Incoming webhook messages are matched to a function first by matching to a provider, then by the function's URI. Each webhook provider may have multiple functions, and multiple functions may be executed for one incoming message.

Viewing Webhook Functions

Access functions by navigating to Administration → Integrations → Webhooks.

Creating/Editing Webhook Functions

To create a new function, click the  button. To view or edit a function, click on the name of the function.

Field

Description

Name

The name of the function

DescriptionThe description for the function
ProviderProvider the function is for
UriPath webhook will be sent (appended to /flexdeploy/webhooks/v1)
ActiveWhether or not the function is active (Defaults to Yes)

Groovy Script

The Groovy script for the function will be executed when a webhook is received at the listed URI that has been matched to the selected provider. The editing window has capabilities for undo, redo, find, find and replace, and go to line. There are a variety of context variables and methods available to use in this script. Type Ctrl + Space in the editor for suggestions on variables and methods that can be used. See more examples of functions on our Sample Implementations page.

  • No labels