cancelSaveLink

Unlocks a link record locked by editLink. Does not need to be called if saveLink is successful. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
linkID long Unique link record ID.

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

{

// Use GetLinkDefinitionValues to retrieve valid strings.

lnk.linkDefinitionName = "Requirement Source";

 

ttsdk.saveLink(cookie, lnk);

}

catch (Exception e)

{

ttsdk.cancelSaveLink(cookie, lnk.recordid);

}