removeEntityFromFolderByRecordID
Removes an item from a folder based on record ID. A SOAP error envelope is returned if the operation fails.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
recordID | long | Unique folder record ID. |
publicFolder | boolean | Indicates if the folder is public or private. |
entity | CFolderItem | Item to remove from the folder. |
Return value
Value | Type | Notes |
---|---|---|
result | int | 0 indicates success. Check the return value in case of an error. |
Example
CFolder folder = ttsdk.getFolder(cookie, "/Public/test folder 1");
CRequirement req = ttsdk.getRequirement(cookie, 0, "Requirement summary", false);
CFolderItem item = new CFolderItem();
item.entitytablename = "Requirement";
item.entityrecordid = req.recordid;
ttsdk.removeEntityFromFolderByRecordID(cookie, folder.recordid, true, item);