How to re-open the case within 2 days using Process builder or Apex class

Process Builder


[EmailMessage].Parent.Status Equals Picklist Closed [EmailMessage].Incoming Equals Boolean True [EmailMessage].Parent.ClosedDate Greater than or equal Formula [EmailMessage].CreatedDate < 2 -

Error - The formula expression is invalid: Incorrect parameter type for operator '<'. Expected DateTime, received Number


Use process builder scheduler instead of formula. https://www.youtube.com/watch?v=V--CWh5eZlo


Within the formula, it has to resolve to a DateTime, so try adding the days to the Created Date:

[EmailMessage].CreatedDate + 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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