Generating a Document
Generates a Word agreement document by using the template specified by the templateId parameter and the agreement indicated by the agreementId. The document is added to the Files and Attachments section for the Agreement object.
The document can subsequently be converted to a PDF, using convertWordDocToPDF.
API |
Signature |
---|---|
generateDoc |
|
Request Parameters |
|||
---|---|---|---|
Name |
Type |
Description |
Required? |
templateId |
|
The id of the template used to generate the word document. |
Yes |
agreementId |
|
The id of the agreement providing the content for the document. |
Yes |
pLevel |
|
The protection level to apply to the document. Valid values are:
|
Yes |
docFormat |
|
Indicates whether the document will be:
|
Yes |
sessionId |
|
The Salesforce session id. |
Yes |
serverUrl |
|
The Salesforce server id. |
Yes |
Response Parameter |
||
---|---|---|
Name |
Type |
Description |
generatedDocId |
|
The id of the generated document. |
Code Sample
This API is the same as the generateDoc API and additionally enables you to add a draft watermark to the generated document.
API |
Signature |
---|---|
generateDoc2 |
|
Request Parameters |
|||
---|---|---|---|
Name |
Type |
Description |
Required? |
templateId |
|
The id of the template used to generate the word doc. |
Yes |
agreementId |
ID |
The id of the agreement providing the content for the document. |
Yes |
pLevel |
|
The protection level to apply to the document. Valid values are:
|
Yes |
docFormat |
|
Indicates whether the document will be:
|
Yes |
isDraft |
|
Indicates whether a draft watermark should be added to the document. |
Yes |
sessionId |
|
The Salesforce session id. |
Yes |
serverUrl |
|
The Salesforce server id. |
Yes |
Response Parameter |
||
---|---|---|
Name |
Type |
Description |
generatedDocId |
|
The id of the generated document. |
Code Sample
Integration Details
Use the following information in your integrations with Apttus Contract Management Web Services API. For information on how to get started, refer to Integrating Conga CLM with External Systems.
API Prerequisites
None.
Request/Response XML
Example Request
Example Response