Creating Proposal Document with Draft Indication
You can use this API to create proposal documents for the given format, template name, document type, protection level, and an indicator of whether the document is a draft or final document. As a callback action, the API creates a task for further action.
API | Signature |
---|---|
generateDoc2 | webService static Id generateDoc2(Id templateId, Id proposalId, String pLevel, String docFormat, Boolean isDraft, String sessionId, String serverUrl) |
Request Parameter | |||
---|---|---|---|
Name | Type | Required? | Description |
templateId | ID | Yes | The ID of the template you want to use for the proposal. |
proposalId | ID | Yes | The ID of the proposal for which you want to generate the document. |
pLevel | String | Yes | The protection level you want to apply on the document |
docFormat | String | Yes | The format in which you want to generate the document. The valid values for this parameter are listed below:
|
isDraft | Boolean | Yes | Indicate whether the generated document is a draft or a final document. |
sessionId | String | Yes | The session ID you want to use for the callback. |
serverUrl | String | Yes | The server URL you want to use for the callback. |
Response Parameter | ||
---|---|---|
Field | Type | Description |
documentID | ID | The ID of the generated document. |
Code Sample
The sample code below enables you to create a proposal document by providing a valid proposal ID, template name, protection level, format, draft state. After the execution, it returns the proposal document ID.