I have created a picklist called status and that picklist has 4 values: New, Pending, Approved and Rejected. I have added a validation rule called statusFieldMustBeNew. So, when a user creates a record then while creating it the status must be new.
If that record is sent for approval then the status will change to pending, approved and rejected (depending upon the condition).
Now my requirement is, when the status field has pending value then I want process builder to post a message to chatter that someone is asking for somekind of approval but processbuilder is respecting that validation rule and I am not able to post a message on Chatter Feed.
so, How do i tell process builder to discard that validation rule? I can attain it by creating a variable and checking the value of it but i want to know if there are other better ways.
The validation rule is:
OR(ISPICKVAL( Status__c, 'Pending'),
ISPICKVAL( Status__c, 'Approved'),
ISPICKVAL( Status__c, 'Rejected'),
ISPICKVAL( Status__c, ''))