Create a saved external trigger

  • Release version: Yokohama
  • Updated January 30, 2025
  • 2 minutes to read
  • Save a set of trigger definitions as a reusable trigger that responds to an external event through webhooks. When an event occurs in the configured third-party application that meets the specified conditions, the trigger is activated.

    About this task

    Create a saved trigger that responds to events occurring in a supported third-party spoke that is already configured in Workflow Studio. The third-party spoke sends the event payload to Workflow Studio whenever an event occurs. In the trigger definition, specify the event payload in JSON format and the conditions to start the trigger. Obtain the event payload JSON from the third-party spoke that you configure.

    Before you begin

    Role required: trigger_designer, flow_designer, or admin

    Subscription required: This step requires an Integration Hub subscription.

    Plugins required: Install the following Integration Hub plugins:
    • ServiceNow Integration Hub External Trigger [com.glide.ih.external_trigger]: To use out of the box external triggers.

    • External Trigger Builder [sn_ext_trg_bldr]: To create a saved external trigger.

    Note:
    For information about what is included with different Integration Hub subscriptions, see Legal schedules - Integration Hub overview
    Ensure that you've configured the external trigger endpoints for the third-party application spoke. The supported spokes are:
    • Jira Spoke
    • GitHub Spoke
    • Docusign eSignature Spoke
    For more information about configuring the third-party spoke, see .
    Important:
    Keep the event payload JSON of the third-party application handy. Refer to the third-party webhook documentation to learn about from where you can copy the payload JSON. For example, see the following link that shows different payload shapes for Jira events: Executing a webhook.

    Procedure

    1. Navigate to All > Process Automation > Workflow Studio.
    2. From the Workflow Studio home page, select New > Trigger.
    3. On the form, fill in the fields.
      Table 1. New Trigger form
      Field Description
      Trigger name Name to identify the trigger.
      Trigger type The type of the trigger to start your flow. Under External, select Event (Webhook).
      Description Description of the trigger.
      Application Application scope to create the trigger. Workflow Studio displays the configured spokes that are supported.
    4. Select Show additional properties and fill in the fields.
      Table 2. Additional properties form
      Field Description
      Accessible from The trigger data is accessible from all application scopes.
      Category The category where your trigger is displayed.
      Trigger annotation Annotation for your trigger that the user can see before they select the trigger.
    5. Select Build trigger.
      Workflow Studio displays the Trigger definition page. In the Event source preview area, you can view information about how the external trigger endpoint is configured.
    6. Under Parser, fill in the fields.
      Table 3. Parser form
      Field Description
      Trigger output name Label to identify the trigger output.
      Request headers Optional field to specify one or more headers to be included in the inbound request.
      Query parameters Optional field to specify one or more parameters to be included in the inbound request.
    7. Under Body, in JSON editor, paste the payload JSON from the third-party application.
      Refer to the third-party webhook documentation to learn about from where you can copy the payload JSON. Shows the JSON editor where you paste the payload data in JSON.
    8. Select Visualize objects.
      The editor displays the objects that are in the payload JSON. You can reorder or remove the objects. The objects are available as data pills to use in conditions. Displays the objects after you select Visualize objects.
    9. In Condition editor, drag and drop the data pills to create a condition set.
      Use [or] or [and] operators to add more conditions to the condition set. Example data pill value in a condition.
    10. Select +New condition set to add additional condition sets as per your requirement.
    11. Select Publish to make the trigger available for others to use.
      Note:
      You can’t edit a saved external trigger after you publish.