saveLink

Saves changes made to a link record and unlocks the record. Use editLink to start the editing process.

A SOAP error envelope is returned if the operation fails. If the operation fails, use cancelSaveLink to unlock the record instead.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pLink CLink Edited link to save.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CLink lnk = ttsdk.editLink(cookie, 1);

 

try

{

lnk.comment = "Comment SOAP EDIT";

 

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

ttsdk.saveLink(cookie, lnk);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveLink(cookie, lnk.recordid);

}