This API allows you to regenerate agreement documents with redlines.
API
Signature
regenerateDocWithRedlines
webService static Id regenerateDocWithRedlines(Apttus.CustomClass.DocGenParam params)
Request Parameters
Name
Type
Description
Required?
templateId
ID
The ID of the template
Yes
versionDetailId
ID
The Id of the document version
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
SObjectId
ID
The Id of the object which holds data for merge fields.
sourceDocumentId
ID
The Id of the document to regenerate. The document is used to compare for redlines.
Yes
sessionid
String
The Salesforce session ID.
Yes
sessionUrl
String
The Salesforce server Url.
Yes
Response Parameter
Name
Type
Description
result
Boolean
Indicates whether the document was regenerated successfully.
Code Sample
ID templateId = 'a090x00000oiMeoAAE';
ID agreementId = 'a070x000007Fed0AAC';
ID versionDetailId = 'a0h0x000003HYXUAA4';
String pLevel = '0';
String docFormat = 'DOCX';
Boolean isDraft = false;
ID sourceDocumentId = '0690x0000021Hy4AAE';
CustomClass.DocGenParam docGenParam = New CustomClass.DocGenParam(templateId, versionDetailId, pLevel, docFormat, isDraft, SObjectId, sourceDocumentId, sessionid, sessionUrl);
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.