You can manipulate data within ServiceDesk Plus Cloud whenever an event occurs in an external application using callback functions. For example, you can write a callback function to notify ServiceDesk Plus Cloud whenever a ticket is added in your bug tracking software, such as Backlog and update the necessary information in ServiceDesk Plus Cloud. A callback function is the same as a webhook, only triggered from an external application to perform a task within ServiceDesk Plus Cloud.
Callback functions are internally executed through custom scripts, which allow you to perform all types of actions including API calls to external applications.
Each callback function consists of an API name, a URL auto-generated for the given API name, and a custom function. The API name must be unique across the callback functions. The URL will be used by the external application users to invoke the callback function.
You can also add parameters to a callback function. Parameters are the input to a custom function from external users when invoking the callback function.
External application users must provide the following values for fields while invoking any callback function:
URL: URL generated for the callback function
HTTP Request Method: POST
For a callback function with parameters, the user must also provide the parameter values under the key arguments in the HTTP body.
Parameter Value Format: arguments = {"<Parameter Name 1>":"<Parameter Value 1>", "<Parameter Name 2>":"<Parameter Value 2>", ...}
For example, arguments = {"name":"tom","id":123}