This API rejects the approval request. This API accepts the ID of the approval request and comments as input parameters. Approval requests are rejected in an asynchronous mode. When you submit rejectRequest API, a batch job is submitted to reject the approval request. You will receive an email notification when the API is successfully executed. If the API fails for some reason, the entire process is rollbacked. 

You can only reject one approval request at a time. 

rejectRequestwebService static Boolean rejectRequest(Id requestId, String comments)
Request Parameters


IDYesID of the approval request.
commentsStringYesComments to add to the approval request.
Response Parameter
resultBooleanReturns true if the approval request is rejected successfully.

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


Response/Request XML

Example Request

<soapenv:Envelope xmlns:soapenv="" xmlns:app="" xmlns:bul="">
         <!--Zero or more repetitions:-->
            <bul:comments>i dont approve one</bul:comments>

Example Response

<soapenv:Envelope xmlns:soapenv="" xmlns="" xmlns:xsi="">
         <result xsi:nil="true"/>