Download page Generating a Document on Submit Request.
Generating a Document on Submit Request
This API submits the generate document action using the given template from templateId and agreement from agreementId. The output format of the generated document is of the type specified in the docFormat parameter.
API
Signature
submitGenerateDoc
webService static Id submitGenerateDoc(Id templateId, Id agreementId, String pLevel, String docFormat, Boolean isDraft, String sessionId, String serverUrl)
Request Parameters
Name
Type
Description
Required?
templateId
ID
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
String
The protection level to apply to the document. Valid values are:
Full access
Insert comments only
Insert comments and tracked changes only
Read only
Fill in form fields only
Yes
docFormat
String
Indicates whether the document will be:
DOC
DOCX
PDF
RTF
Yes
isDraft
Boolean
Indicates whether a draft watermark should be added to the document.
Yes
sessionId
String
The Salesforce session id.
Yes
serverUrl
String
The Salesforce server id.
Yes
Response Parameter
Name
Type
Description
result
ID
The id of the generated document.
Code Sample
ID templateId = 'a036100000Fha5D';
ID agreementId = 'a016100000Che3D';
String pLevel = 'Full access';
String docFormat = 'DOC';
Boolean isDraft = false;
String sessionId = sessionId; //This is the session Id.
String serverUrl = System.Url.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/u/50.0/' + UserInfo.getOrganizationId();
ID callId = Apttus.MergeWebService.submitGenerateDoc(templateId,agreementId,pLevel,docFormat,isDraft,sessionId,serverUrl);
CODE
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.