saveFolder

Saves changes made to a folder record and unlocks the record. Use editFolder or editFolderByRecordID to start the editing process.

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

You cannot change the order of folders in the hierarchy using the Helix ALM SDK.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pFolder CFolder Edited folder to save.

Return value

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

Example

CFolder folder = ttsdk.editFolder(cookie, "/Public/test folder 1");

 

try

{

folder.name = "test folder 1 SOAP EDIT";

 

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

ttsdk.saveFolder(cookie, folder);

}

catch (Exception e)

{

// The following operation unlocks the record

ttsdk.cancelSaveFolder(cookie, folder.recordid);

}