Defining a Hook and using it within a Workflow

To define a common hook to create an incident ticket on ServiceNow and use it within a workflow:
  1. Go to the Hooks Inventory.
  2. On the Workflow > Hooks Inventory page, from the command bar on the top right corner of the screen, click (Add) icon.
  3. On the Workflow > Hooks Inventory > Add page, under Hooks Type select REST and enter a Description for the hook.
  4. In the API Details section, enter or select the required field information as shown in the image below.
  5. Click Save.
  6. Design a workflow.
  7. From the User Interface section, drag and drop a Form task.
  8. Under the Form builder tab, define the necessary form fields.
  9. Under the Hooks tab, select the Hook type as REST.
  10. From the Hooks Inventory dropdown, select the API name as defined before.
  11. From the Field ID dropdown, select the field against which the hook should be mapped.
  12. Click Add.
  13. Under the Form Builder tab, click (View) icon.
    A preview of the form shows the hook added to the form field.