editTaskByRecordID

Retrieves a Workbook task record for editing based on record ID. A saveTask operation must be used with this operation to save any changes to the record. A SOAP error envelope is returned if the operation fails.

To unlock the record without saving changes, use cancelSaveTask.

To edit a task based on summary, use editTask.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
recordID long Unique task record ID.

Return value

Value Type
pTask CTask

Example

CTask task = ttsdk.editTaskByRecordID(cookie, 1);

 

try

{

task.summary = "Task summary SOAP EDIT";

 

// The following line throws an exception if the operation fails.

ttsdk.saveTask(cookie, task);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveTask(cookie, task.recordid);

}