Use a webhook in Workfront Fusion

NOTE
To call a third party webhook (an outgoing webhook) use one of the HTTP modules. For more information, see HTTP modules.

To use a webhook to connect an app to Workfront Fusion:

  1. Add the Webhooks >Custom Webhook instant trigger module to your scenario.

  2. Click Add next to the Webhook field and enter a name for the new webhook.

  3. (Optional) Click Advanced Settings.

  4. In the IP restrictions field, enter a comma-separated list of the IP addresses that the module can accept data from.

  5. Click Save

After you create a webhook, a unique URL displays. This is the address where the webhook sends data. Workfront Fusion validates the data sent to this address, then passes it on for processing in the scenario.

NOTE
Once you create a webhook, you can use it in more than one scenario at a time.

Configure the webhook’s data structure

To recognize the data structure of the incoming payload, Workfront Fusion parses sample data that you send to the displayed address. You can supply the sample data by making a change in the service or app that will make that service or app call the webhook. For example, you could remove a file.

Or, you can send the sample data via the HTTP > Make a request module:

  1. Create a new scenario with the HTTP > Make a request module

  2. Configure the module with the following values:

    URLEnter the URL of the webhook. You can find this URL in the Webhooks module that you have used to set up the webhook.
    MethodPOST
    Body typeRaw
    Content typeJSON (application/json)
    Request contentRaw JSON expected in the webhook

    New scneario setup

  3. Open the scenario with the Webhooks module in a separate browser tab or window.

  4. In the webhooks module, click Redetermine data structure.

    You do not need to unlink other modules from the webhooks module.

  5. Switch to the scenario with the HTTP module and run it.

  6. Switch back to the scenario with the Webhooks module.

    A “Successfully determined” message means that the module has successfully determined the data structure.

    Successfully determined

  7. Click OK to save the data structure.

    The webhook’s items are now available in the mapping panel for use with subsequent modules in the scenario.