<EntityName>WebhookField (SOAP API)

This article describes the WebhookField entity of the Autotask SOAP API. For the REST API equivalent of this webhook, refer to <EntityName>WebhookFields (REST API).

Overview

This entity names a system field that when updated will either trigger a webhook call or is always part of the payload of the webhook. At least one callout field (WebhookField or WebhookUdfField) must be present to make a create() or update() call.

IMPORTANT  The Autotask GUI uses field labels that can be changed by customer configurations and localization. To ensure consistency for integration programming, the AccountWebhookField and ContactWebhookField entities use REST API field names instead of SOAP API labels. Refer to theSOAP to REST webhook field mapping section of this article to learn how to interpret these names.

Entity details

You can also retrieve this information with the Web Services API call The getEntityInfo() SOAP API call.

Entity Name: <EntityName>WebhookField
Can Create:
Can Update:
Can Query:
Can Delete:
Can Have UDFs:  

Fields

Field Name

Label and Description

Datatype Read Only Is Required Reference Name Picklist?

FieldID

integer  

id

long    

IsDisplayAlwaysField

boolean      

IsSubscribedField

boolean      

WebhookID

integer   <EntityName>Webhook (SOAP API)  

SOAP to REST webhook field mapping

The SOAP AccountWebhookField and ContactWebhookField entities use REST API field names instead of SOAP API labels.

The following table maps webhook-supported SOAP to REST field and label names for the Account/Companies resources, the Contact/Contacts resources, the InstalledProduct/ConfigurationItems resources, the Ticket/Tickets resources, and the TicketNote/TicketNotes resources.

Sample request

Here is a sample SOAP request that will trigger a callout when field ID 13 (the Zip Code field) is changed.

            <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <AutotaskIntegrations xmlns="http://autotask.net/ATWS/v1_6/">
      <IntegrationCode>INSERTYOUROWN</IntegrationCode>
    </AutotaskIntegrations>
  </soap:Header>
  <soap:Body>
    <create xmlns="http://autotask.net/ATWS/v1_6/">
      <Entities>
        <Entity xsi:type="AccountWebhookField" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <FieldID>13</FieldID>
          <IsDisplayAlwaysField>True</IsDisplayAlwaysField>
          <IsSubscribedField>True</IsSubscribedField>
          <WebhookID>1</WebhookID>
        </Entity>
      </Entities>
    </create>
  </soap:Body>
</soap:Envelope>
        

You must add a separate callout for each field where a change will trigger a callout, or for each field that you want to add to the payload when another field triggers a callout.