Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I am trying to detect whether a record is currently in an approval process.

This is similar to this question but a different approach. I want to use the status of the youngest ProcessInstance to determine if the record is currently pending approval.

The list of values for the ProcessInstance.Status picklist is below. I am trying to Understand which of these means the record is pending approval.

  • Approved
  • Rejected
  • Recalled
  • Fault
  • Pending
  • Hold
  • Reassigned
  • Submitted
  • NoResponse

I am sure Submitted and Pending mean the record is being approved. Hold, Reassigned and NoResponse are the ones I'm unsure of.

share|improve this question

1 Answer 1

You are corrected that statuses Submitted and Pending mean the record is in the approval process but not yet approved.

NoResponse: If the approval step requires unanimous approval and one approver rejects the request, the value of this field for the other approvers changes to NoResponse. Likewise, If approval is based on the first response and an approver responds, the value of this field for the other approvers changes to NoResponse

Reassigned: Sent to a delegated approver in the approval process

share|improve this answer
1  
This is great, thank you. Do you know what Hold means? –  Daniel Blackhall Jan 16 '13 at 21:39

Your Answer

 
discard

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.