Webhook Payloads

Below are some examples of Webhook Payload Capabilities

Supported Event Entity Types

  • Call

  • CMDB item

  • Knowledge

  • CMDB Link

  • Person

  • Request

  • Task

chevron-rightAttachments (Upload, Update and Delete)hashtag

Released: 10.6.8.14016

Payload Options: 
1. Include all attachments in payload
2. Attachment Name Filter
3. Attachment Size Limit
4. Number of Attachments oer Payload Limit

This is enabled via a registry key on the System: When the "Include all attachments in payload" option is enabled, it will include the attachments of that entity in the payload.

Example:

{ "Action": "Forwarded", "Call": { "Ref": 757, ...omitted for ease of reading } }, "Attachments": [ { "Ref": 1720, "Name": "Test3.txt", "FileSize": 12, "ContentType": "text/plain", "Data": "VGVzdCBjb250ZW50" }, { "Ref": 1719, "Name": "NewTest1.txt", "FileSize": 12, "ContentType": "text/plain", "Data": "VGVzdCBjb250ZW50" } ] }
  • "Attachment Name Filter" - Allows the admin to configure regular expressions to filter what attachments get included by their name. multiple regular expressions can be defined separated by a semi colon ";"

  • "Attachment Size Limit" - Allows the admin to configure a max size of attachment to be included. When greater than 0 (no limit), it will filter what attachments get included based on file size (in kilobytes).

  • "Number of Attachments per Payload Limit" - The maximum number of attachments to be included in the payload. When greater than 0 (no limit), it will select the newest (uploaded/updated most recently) attachments, until the limit is reached.

A new activity log entry will be added for webhooks which indicate what attachments have been included/excluded from the payload.

chevron-rightInline images when they are contained within HTMLhashtag

Released: 10.6.8.13255

Parameters: Inline Images should have src set to base64 encoded content.

chevron-rightLast Historyhashtag

Released: 10.6.9.14735

Action: ActionAddedtoHistory
Property: ActionHistoryId

If a history record exists for the action, then it will add the ref to the payload using the ActionHistoryId property

This functionality only applies to Calls, Requests and Tasks at the moment. The ActionHistoryId property will not be added to the "ObjectAttached" action, but should be added to the corresponding "ActionAddedToHistory" action.

{
"Action": "Closed",
"ActionHistoryId": 16,
"Call": {
    "Ref": 404,
    
    .....

The ActionHistoryId ref can then be used to retrieve the history item via the Alemba API.

api/v2/call/404/history?$select=Order,ActionTitle,ActionDescription&$Filter=Order=18
chevron-rightLast Note Addedhashtag

Released: 10.6.8.13574

You can add the last note added to a ticket as part of the webhook payload.

Add LastUpdate and LastUpdateHtml to webhook payload. The description and description html from the most recent user action will be added to the webhook payload when these fields are added to Payload select in admin.

chevron-rightInclude All Attachmentshashtag

Released: 10.6.8.13574

You can include all the attachments to be sent (as long as they meet the configured criteria):

This is enabled via a registry key on the System:

When the "Include all attachments in payload" option is enabled it will include the attachments of that entity in the payload.

Example:

Additional Options for Include All Attachments

  • "Attachment Name Filter" - Allows the admin to configure regular expressions to filter what attachments get included by their name. multiple regular expressions can be defined separated by a semi colon ";"

  • "Attachment Size Limit" - Allows the admin to configure a max size of attachment to be included. When greater than 0 (no limit), it will filter what attachments get included based on file size (in kilobytes).

  • "Number of Attachments per Payload Limit" - The maximum number of attachments to be included in the payload. When greater than 0 (no limit), it will select the newest (uploaded/updated most recently) attachments, until the limit is reached.

A new activity log entry will be added for webhooks which indicate what attachments have been included/excluded from the payload.

Last updated