This is a hard one to google :)
I have my custom object (Animals__c), and my status fields (Status__c) =
Intake
Vet Care
Ready for Approval
Ready for Foster Placement
In Foster Care
Adopted
I have an approval process that kicks off and locks the record in Ready for Approval Status.
Do I need Apex, or can I create a validation rule that will check:
IF Approval Process (Ready_for_Foster_Adoption) = Approved,
THEN you can use Ready for Foster Placement, In Foster Care, and Adopted
IF Approval Process = Rejected,
THEN you can NOT use Ready for Foster Placement, In Foster Care, and Adopted
Seems straightforward enough.. I'm just not sure how to check if an Approval Process is approved in a formula.
Forum Ambassador Steven Trumble (Strum Consulting)
I'd just build a checkbox or yes/no picklist on Animals.
Then in your approval actions mark this as true/ yes.
Build the validation rule on that