getRequirementDocument
Retrieves a requirement document record. A SOAP error envelope is returned if the operation fails.
To retrieve a document based on record ID, use getRequirementDocumentByRecordID.
To edit a document, use editRequirementDocument or editRequirementDocumentByRecordID.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
documentNumber | long | Number of the document to retrieve. Set as 0 to search by document name. |
name | string | Name of the document to retrieve. If the name matches more than one document, the operation fails. This field is ignored unless documentNumber is 0. |
bDownloadAttachments | boolean | Indicates if attachments should be retrieved. Using False may improve performance when the file contents are not needed. |
Return value
Value | Type |
---|---|
pRequirementDocument | CRequirementDocument |
Example
CRequirementDocument reqDoc = ttsdk.getRequirementDocument(cookie, 0, "Requirement document name", false);