deleteTask

From LongJump Support Wiki
Functions.deleteTask(String recordId)
Deletes a task for the taskId.

Retrieve the ID of the task to be deleted using Functions.searchRecords() with specific criteria.

Syntax

Result = Functions.deleteTask(String taskID)

Parameters

taskID
The identifier of the task

Return

Result object
Example
This example calls deleteTask, removing the task identified by taskID.
String taskID = "";
// Some code to populate the taskID, using searchRecords API.
Result deleteTaskResult = Functions.deleteTask(taskID);
//Check the Result object to get details on the execution of the API