
1. Approval Process on a Custom Object named Trip Report with a custom field named Trip Report Status.
a. Status of the Trip Report starts out as Draft, is updated to Pending Approval when submitted.
b. Status of the Trip Report is updated to Approved when it is accepted.
The approval process works fine.
1. Process Builder based on the Trip Report object (when a record is created or edited) - Recursion checkbox (Recursion - Allow process to evaluate a record multiple times in a single transaction?) is unchecked.
a. Action Group criteria is set to "when formula evaluates to tue" and Advanced checkbox is unchecked (Do you want to execute the actions only when specified changes are made to the record?). The formula is:
AND(ISCHANGED([Trip_Report__c].Trip_Report_Status__c),
ISPICKVAL(PRIORVALUE([Trip_Report__c].Trip_Report_Status__c),"Pending Approval"),
ISPICKVAL([Trip_Report__c].Trip_Report_Status__c, "Approved"))
Based on this formula I make a post to a private Chatter group (of which I am the owner), but that never occurs.
I was able to use the same formula (slightly modified) to work correctly in a Validation Rule on the same object:
AND(ISCHANGED(Trip_Report_Status__c),
ISPICKVAL(PRIORVALUE(Trip_Report_Status__c),"Pending Approval"),
ISPICKVAL(Trip_Report_Status__c, "Approved"))
Has anyone seen this behavior before?
3 respostas
Chris,
Did you check the following on the Approval ProcessField update action:
Re-evaluate Workflow Rules After Field Change
If not, then do that and now give it a shot.