Publish the Document to Files and Attachments
Prerequisite: Ensure that the APTS_ContentRepositoryType admin object value is set to Document. For more information, see Admin Entries.
This API publishes the agreement document for the activated agreement to Files and Attachments for the Salesforce object the agreement is associated with.
|
API |
Signature |
|---|---|
|
publishToDocumentRepository |
|
|
Request Parameters | ||
|---|---|---|
|
Name |
Type |
Description |
|
agreementId |
|
The id of the agreement |
|
attachmentId |
|
The id of the document that is to be published and uploaded to Files and Attachments. |
|
Response Parameter | ||
|---|---|---|
|
Name |
Type |
Description |
|
result |
|
Indicates whether the document was published to Files and Attachments successfully. |
Code Sample
Id agreementId = agreement.Id;
Id attachmentId = AttachmentId;
Boolean response = Apttus.AgreementWebService.publishToDocumentRepository(Id agreementId, Id attachmentId);
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.
Request/Response XML
Example Request
<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:publishToDocumentRepository>
<agr:agreementId>a07020000008w9BAAQ</agr:agreementId>
<agr:attachmentId>a070S000002aDcuQAE</agr:attachmentId>
</agr:publishToDocumentRepository>
</soapenv:Body>
</soapenv:Envelope>
Example Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="ht tp://soap.sforce.com/schemas/class/Apttus/AgreementWebService">
<soapenv:Body>
<publishToDocumentRepositoryResponse>
<result>true</result>
</publishToDocumentRepositoryResponse>
</soapenv:Body>
</soapenv:Envelope>
