This API reassigns the approval request. This API accepts the ID of the approval request, Id of the assignee and comments as input parameters.

APISignature
reassignRequestwebService static Boolean reassignRequest(Id requestId, Id toAssigneeId, String comments)
Request Parameters
NameTypeRequired?Description

requestId

IDYesID of the approval request.

toAssigneeId

IDYesID of the new assignee.
commentsStringYesComments
Response Parameter
NameTypeDescription
resultBooleanReturns true if the approval request is reassigned.

Integration Details

Use the following information in your integrations with Apttus Intelligent Workflow Approvals API. Refer to Integrating Apttus 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:reassignRequest>
         <app:requestId>a0oR0000006cr6t</app:requestId>
         <app:toAssigneeId>005q00000028qNb</app:toAssigneeId>
         <app:comments>ReAssigned</app:comments>
      </app:reassignRequest>
   </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>
      <reassignRequestResponse>
         <result>true</result>
      </reassignRequestResponse>
   </soapenv:Body>
</soapenv:Envelope>
XML