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>. | ||
: | :<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> | |||
[[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
- 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