Download page Add Attachments to a Runtime Ad Hoc Approval Process.
Add Attachments to a Runtime Ad Hoc Approval Process
This API enables you to add one or more attachments to a runtime ad hoc approval process. This API accepts the context object type, id, and list of attachment IDs to add as input parameters and returns true if the attachments are successfully added.
API
Signature
AddAttachmentsToRuntimeAdhocApprovalProcess
webService static Boolean AddAttachmentsToRuntimeAdhocApprovalProcess(String sObjectType, Id sObjectId, ListattachmentIds)
Request Parameters
Name
Type
Required?
Description
sObjectId
ID
Yes
Id of the approval context object.
sObjectType
Type
Yes
Type of the approval context object.
attachmentIds
List
Yes
List of attachment Id's to add.
Response Parameter
Name
Type
Description
result
Boolean
Returns true if the attachments are added successfully.
Code Sample
/**
* Add attachments to a runtime ad hoc approval process
* @param sObjectType the approval context sobject type
* @param sObjectId the approval context sobject identifier
* @param attachmentIds the list of attachment ids to add
* @return <code>true</code> if the attachments were added, <code>false</code> otherwise
*/
WebService static Boolean AddAttachmentsToRuntimeAdhocApprovalProcess(String sObjectType, ID sObjectId, List<ID> attachmentIds);
CODE
Integration Details
Use the following information in your integrations with Conga Approvals API. Refer to Integrating Conga with External Systems for information on how to get started.
API Prerequisites
None.
Response/Request XML
Example Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:app="http://soap.sforce.com/schemas/class/Apttus_Approval/ApprovalsWebService">
<soapenv:Header>
<app:SessionHeader>
<app:sessionId>00DR0000001nyVR!ARYAQNCIk5WB9S9PlmZzS2uecBjxnhB20ndYmyxseH1LEfStQi1cXAtXiDxEyd3kAbYrAXbpJmDZzVXGxrxxleE8Fmm6kqSm</app:sessionId>
</app:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<app:AddAttachmentsToRuntimeAdhocApprovalProcess>
<app:sObjectType>Apttus__APTS_Agreement__c</app:sObjectType>
<app:sObjectId>a07R0000009z33H</app:sObjectId>
<!--Zero or more repetitions:-->
<app:attachmentIds>069R0000000ZIdt</app:attachmentIds>
</app:AddAttachmentsToRuntimeAdhocApprovalProcess>
</soapenv:Body>
</soapenv:Envelope>