Show / Hide Table of Contents

Class DBC.WebhookFields

Fields for Webhook, Webhook URL to call when events occur in the client or in NetServer. Also tracks call+error statistics.

Inheritance
object
DBC.WebhookFields
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
public static class DBC.WebhookFields

Fields

ApplicationToken

Webhook.ApplicationToken: Application that registered this hook. If set, then other apps won't be able to modify this record

Declaration
public const string ApplicationToken = "application_token"
Field Value
Type Description
string

ErrorsEmail

Webhook.ErrorsEmail: Email address to send error message to when this webhook state changes to too-many errors.

Declaration
public const string ErrorsEmail = "errors_email"
Field Value
Type Description
string

Events

Webhook.Events: Comma separated list of event names that this hook responds to: 'contact.created,person.changed,project.deleted'

Declaration
public const string Events = "events"
Field Value
Type Description
string

Headers

Webhook.Headers: Hook specific additional HTTP headers that should be added to HTTP request, stored as JSON blob

Declaration
public const string Headers = "headers"
Field Value
Type Description
string

Name

Webhook.Name: Name to identify this webhook. Does not have to be unique.

Declaration
public const string Name = "name"
Field Value
Type Description
string

Properties

Webhook.Properties: Hook specific additional data that should be added to payload, stored as JSON blob

Declaration
public const string Properties = "properties"
Field Value
Type Description
string

Registered

Webhook.Registered: Registered when

Declaration
public const string Registered = "registered"
Field Value
Type Description
string

RegisteredAssociateId

Webhook.RegisteredAssociateId: Registered by whom

Declaration
public const string RegisteredAssociateId = "registered_associate_id"
Field Value
Type Description
string

Secret

Webhook.Secret: Shared secret key used for generating SHA256 HMAC signature, so that receiver can verify that call came from this server

Declaration
public const string Secret = "secret"
Field Value
Type Description
string

State

Webhook.State: Webhook status - should we post events to the URL? 1=Active, 2=Stopped or 3=TooManyErrors

Declaration
public const string State = "state"
Field Value
Type Description
string

TargetUrl

Webhook.TargetUrl: Destination to POST event info to. URL for webhooks. Id for CRM scripts

Declaration
public const string TargetUrl = "target_url"
Field Value
Type Description
string

Type

Webhook.Type: Name of plugin that handles this webhook. 'webhook' for HTTP POST notifications, 'crmscript' for script invocations.

Declaration
public const string Type = "type"
Field Value
Type Description
string

Updated

Webhook.Updated: Last updated when

Declaration
public const string Updated = "updated"
Field Value
Type Description
string

UpdatedAssociateId

Webhook.UpdatedAssociateId: Last updated by whom

Declaration
public const string UpdatedAssociateId = "updated_associate_id"
Field Value
Type Description
string

UpdatedCount

Webhook.UpdatedCount: Number of updates made to this record

Declaration
public const string UpdatedCount = "updatedCount"
Field Value
Type Description
string

WebhookId

Webhook.WebhookId: Primary key

Declaration
public const string WebhookId = "webhook_id"
Field Value
Type Description
string
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top