Difference between revisions of "DeleteTask"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
 
Line 16: Line 16:


'''Return'''
'''Return'''
 
:[[Result Class|<tt>Result</tt> object]]
[[Result Class|<tt>Result</tt> object]]


;Example:This example calls <tt>deleteTask</tt>, removing the task identified by <tt>taskID</tt>.
;Example:This example calls <tt>deleteTask</tt>, removing the task identified by <tt>taskID</tt>.


:{| border="0" cellpadding="5" cellspacing="0"
:<syntaxhighlight lang="java" enclose="div">
|
<syntaxhighlight lang="java" enclose="div">
String taskID = "";
String taskID = "";
// Some code to populate the taskID, using searchRecords API.
// Some code to populate the taskID, using searchRecords API.
Line 29: Line 26:
//Check the Result object to get details on the execution of the API
//Check the Result object to get details on the execution of the API
</syntaxhighlight>
</syntaxhighlight>
|}
<noinclude>


<noinclude>[[Category:Event and Task Management]]</noinclude>
[[Category:Event and Task Management]]
</noinclude>

Latest revision as of 00:29, 14 December 2011

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