Voice for Dynamics exposes a JavaScript API which can be called by any custom or out-of-the-box JS plugin to carry out certain tasks.
All functions within the API are asynchronous and the proper way to call is to use await
statement or properly handle the Promise
object returned.
Function name | Descrtiption |
---|---|
...
Parameters:
...
...
postData
(object): Object which gets sent as payload to Enreach API in a POST or PUT request
...
method
(string): HTTP method to be used. If specified, overrides the method determined by the existence of postData
;
Sends a request to Enreach REST API. |
...
If postData
parameter is NULL then a GET request is sent, whereas any object passed here means a POST request. The object passed here is serialized as JSON in the request payload.
If method
(non-mandatory) parameter is specified, it overrides the above logic to determine HTTP method.
Detailed Enreach API documentation can be found here: https://doc.enreachvoice.com/beneapi
Parameters:
aNumber
(string): the A-number to set
Sets the A-number (the phone number the call appears to come from) before making an outbound call. |
...
A-number is valid for the next call only, is not set permanently for the user.
Detailed documentation: https://doc.enreachvoice.com/beneapi#user-features
...
Creates an entity in Dynamics with a retry logic | |
Updates an entity in Dynamics with a retry logic | |
Retrieves an entity from Dynamics with a retry logic | |
Executes a request (e.g. an action) against Dynamics API. |