This API enables you to submit approvals for a context object using the ad hoc approval specification for that object. This API accepts the context object type and id as input parameters and returns true if the submit is successful.

APISignature
submitForAdhocApprovalswebService static Boolean submitForAdhocApprovals(String sObjectType, Id sObjectId)
Request Parameters
NameTypeRequired?Description

sObjectId

IDYesID of the business object.
sObjectTypeStringYesType of business object.
Response Parameter
NameTypeDescription
resultBooleanReturns true if the approval request is submitted successfully.

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:submitForAdhocApprovals>
         <app:sObjectType>Apttus__APTS_Agreement__C</app:sObjectType>
         <app:sObjectId>a07R000000AiYlwIAF</app:sObjectId>
      </app:submitForAdhocApprovals>
   </soapenv:Body>
</soapenv:Envelope>
XML

Example Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns="http://soap.sforce.com/schemas/class/Apttus_Approval/ApprovalsWebService">
   <soapenv:Body>
      <submitForAdhocApprovalsResponse>
         <result>true</result>
      </submitForAdhocApprovalsResponse>
   </soapenv:Body>
</soapenv:Envelope>
XML