Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While the apex developer documentation provides sample code on submitting an sObject to an approval provess with apex there is no documentation on how to recall an item from the approval process.

Is this possible? If so, how is it done?

share|improve this question
up vote 8 down vote accepted

This is possible by setting the action on a ProcessWorkItemRequest to "Removed". Depending on the configuration of your approval process this option may only be available to system administrators. If the approval process is set to "Allow submitters to recall approval requests" then the submitter of the record can also recall it.

Sample apex:

Approval.ProcessWorkitemRequest PWR = new Approval.ProcessWorkitemRequest();
Approval.ProcessResult result =  Approval.process(PWR);
share|improve this answer
does the approval.processResult count as a DML? – user11235813 Feb 26 '15 at 17:59
Hey Chris, this just got flagged as apparently it doesn't workin the latest version of the API. Got any insight on that or is it likely to be something else? – LaceySnr Apr 22 '15 at 22:30
Nothing at the moment. I'll see if I can replicate it not working. – ca_peterson Apr 22 '15 at 22:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.