This updates multiple smart fields in a document with the latest values and creates a new check-in with the redlined version without manual intervention. 

API

Signature

updateSmartFieldsOnAgreementDocument

webService static String updateSmartFieldsOnAgreementDocument(Id agreementId, Id documentId)

Prerequisite: You need to configure the Comply System Property—XAJS Endpoint. For more information, see Comply System Properties topic in Contract Management on Salesforce Administrator Guide.

Request Parameters
NameTypeRequiredDescription
agreementIdIDYesThe id of the agreement

documentId

IDYesThe id of the document that is to be published.

Response

This API returns documentId of the newly created document after updating all the smart fields.

Code Sample

ID agreementId = 'a03123123123';
ID documentId = '069123123123'; //attachment or file id
Apttus.AgreementWebService.updateSmartFieldsOnAgreementDocument(agreementId, documentId);
CODE

Use case

Consider an agreement A1 contains document D1. Create an agreement A2 and clone the document D1. This creates document D2. Attach D2 to A2. As D2 contains metadata from A1, you will not be able to call updateSmartFieldsOnAgreementDocument to update D2. To update D2, you need to call enableAuthoring API and then call updateSmartFieldsOnAgreementDocument.

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 Apttus with External Systems.

API Prerequisites

None.

Request/Response XML

Example Request

 
XML

Example Response

 
XML