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

2 Answers 2


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .