Skip to navigation

CallList

Represents a call list to interact with Voximplant's call list processing functionality.
View as Markdown

Functions

reportError

Reports error to the CallList module and continues the call list.

Call this method if the call attempt is not successful. If you do not call this method or reportError, the call list considers this task successful and does not make any more attempts to call this task.

reportError(error: string | Object, callback?: (result: Net.HttpRequestResult) => void): void

Parameters

error
string | ObjectRequired
callback
(result: Net.HttpRequestResult) => void

reportErrorAsync

Reports error to the CallList module asynchronously and continues the call list.

Call this method if the call attempt is not successful. If you do not call this method or reportErrorAsync, the call list considers this task successful and does not make any more attempts to call this task.

reportErrorAsync(error: string | Object): Promise<Net.HttpRequestResult>

Parameters

error
string | ObjectRequired

reportProgress

Reports progress to the CallList module.

reportProgress(progress: string | Object, callback?: (result: Net.HttpRequestResult) => void): void

Parameters

progress
string | ObjectRequired
callback
(result: Net.HttpRequestResult) => void

reportProgressAsync

Reports progress to the CallList module.

reportProgressAsync(progress: string | Object): Promise<Net.HttpRequestResult>

Parameters

progress
string | ObjectRequired

reportResult

Reports successful result to the CallList module, saves the report to result_data field in the sheet, stops the calling attempts for this task and proceeds to the next task.

reportResult(result: string | Object, callback?: (result: Net.HttpRequestResult) => void): void

Parameters

result
string | ObjectRequired
callback
(result: Net.HttpRequestResult) => void

reportResultAsync

Reports successful result to the CallList module asynchronously, saves the report to result_data field in the sheet, stops the calling attempts for this task and proceeds to the next task.

reportResultAsync(result: string | Object): Promise<Net.HttpRequestResult>

Parameters

result
string | ObjectRequired

requestNextAttempt

Changes parameters for the current task and request another calling attempt with updated data. This method can change the following fields for the current task: start_at, attempts_left, custom_data, start_execution_time, end_execution_time and next_attempt_time. The new values work for all remaining attempts. This method does not change the global call list settings. NOTE: if you do not change the attempts_left manually, the call list decreases its value by 1 automatically. When retrying after an unsuccessful calling attempt, including the error field with failure details is strongly recommended; omitting it logs a warning. Refer to the Editable call lists guide to learn more.

requestNextAttempt(data: Object, callback?: (result: Net.HttpRequestResult) => void): void

Parameters

data
ObjectRequired
callback
(result: Net.HttpRequestResult) => void

requestNextAttemptAsync

Changes parameters for the current task and request another calling attempt with updated data asynchronously. This method can change the following fields for the current task: start_at, attempts_left, custom_data, start_execution_time, end_execution_time and next_attempt_time. The new values work for all remaining attempts. This method does not change the global call list settings. NOTE: if you do not change the attempts_left manually, the call list decreases its value by 1 automatically. When retrying after an unsuccessful calling attempt, including the error field with failure details is strongly recommended; omitting it logs a warning. Refer to the Editable call lists guide to learn more.

requestNextAttemptAsync(data: Object): Promise<Net.HttpRequestResult>

Parameters

data
ObjectRequired