Terminating Agreements
The terminateAgreementsAsync API allows you to bulk terminate agreements based on the agreement status.
API |
Signature |
---|---|
terminateAgreementsAsync |
|
Request Parameters |
|||
---|---|---|---|
Name |
Type |
Description |
Required? |
agreementIds |
|
List of agreement Ids |
Yes |
Code Sample
List<ID> agreementIdList = new List<ID> (); Boolean response =
Apttus.AgreementWebService.terminateAgreementsAsync(agreementIdList);
Use Case
Bulk terminate agreements and their related agreements with the same agreement number.
Order of Execution
- Check permissions.
- Get the agreement object.
- Register the terminate indicator.
- Terminate the agreement.
- Save the terminated agreement.
- Reset the terminate indicator.
- Refresh the original agreement.
- Post-termination updates.
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
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:agr="http://soap.sforce.com/schemas/class/Apttus/AgreementWebService">
<soapenv:Header>
<agr:SessionHeader>
<agr:sessionId>00D020000008lUh!AQYAQEEW..3lVJKVa9atZ.0B6NtzfwyA.27WJEfZds4IqJX8uzm8O7.VdNoOTWwjGFxgbrF03ylztaIg6VvFl_EeKVGaQccY</agr:sessionId>
</agr:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<agr:terminateAgreement>
<agr:agreementId>a07020000008w9GAAQ</agr:agreementId>
</agr:terminateAgreement>
</soapenv:Body>
</soapenv:Envelope>
Example Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/schemas/class/Apttus/AgreementWebService">
<soapenv:Body>
<terminateAgreement>
<result>a09R000000Alm7iIAB</result>
</terminateAgreement>
</soapenv:Body>
</soapenv:Envelope>