getDefectByRecordID
Retrieves a defect record based on record ID. A SOAP error envelope is returned if the operation fails.
To retrieve a defect based on number or summary, use getDefect.
To edit a defect, use editDefect or editDefectByRecordID.
Parameters
| Parameter | Type | Description |
|---|---|---|
| cookie | long | Session cookie returned by projectLogon. |
| recordID | long | Unique defect record ID. |
| bDownloadAttachments | boolean | Indicates if attachments should be retrieved. Using False may improve performance when the file contents are not needed. |
Return value
| Value | Type |
|---|---|
| pDefect | CDefect |
Example
CDefect def = ttsdk.getDefectByRecordID(cookie, 1, false);