Webhook definitions* webhooks signal other systems about events inside NetServer.
Constructors
NSWebhookAgent()
Methods
CreateDefaultWebhook()
Sets default values into a new NSWebhook.
Returns: CRMScript.NetServer.NSWebhook - A new NSWebhook with default values.
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:
DeleteWebhook(Integer)
Deletes the NSWebhook
Returns: CRMScript.Global.Void
Example:
GetAllWebhooks(String,String,Integer)
Returns all webhooks, according to filter criteria
Returns: CRMScript.NetServer.NSWebhook[]
Example:
GetLastError(Integer)
Return the most recent error message received when calling this webhook.
Returns: CRMScript.Global.String
Example:
GetWebhook(Integer)
Gets an NSWebhook object.
Returns: CRMScript.NetServer.NSWebhook
Example:
SaveWebhook(NSWebhook)
Updates the existing NSWebhook or creates a new NSWebhook if the id parameter is 0
Returns: CRMScript.NetServer.NSWebhook
Example:
SignalEvent(String,Integer,StringObjectDictionary)
Signal webhooks that an event has occurred. All webhooks listening for the event will be notified.
Returns: CRMScript.Global.Void
Example:
TestWebhook(NSWebhook)
Pings a webhook with a ‘test’ event, returns SUCCESS(true) or FAILURE(false) + the response from the webhook target.
Returns: CRMScript.NetServer.NSWebhookResult
Example: