function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fiona gentryfiona gentry 

On Email2Case How do i make case can't be re-opened if set to closed greater than 7 days.

Hi Folks,

I have a Email2case  setup where in i have set Up Email 2 Case to move to Customer escalations queue..

Now my question is  How do i make a case can't be re-opened if set to closed greater than 7 days. ,I DO NOT want to writre Trigger or Apex for this ,Is  it Possible to achieve this using flow?

Regards

Fiona

 
Best Answer chosen by fiona gentry
VinayVinay (Salesforce Developers) 
Hi Fiona,

You can try below validation rule.
AND(
TODAY() - DATEVALUE(CloseDate) > 7,
TEXT(Status) <> "Closed",
ISCHANGED(Status),
TEXT(PRIORVALUE(Status)) = "Closed",
)

https://help.salesforce.com/s/articleView?id=000337641&type=1

Please mark as Best Answer if above information was helpful.

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Fiona,

You can try below validation rule.
AND(
TODAY() - DATEVALUE(CloseDate) > 7,
TEXT(Status) <> "Closed",
ISCHANGED(Status),
TEXT(PRIORVALUE(Status)) = "Closed",
)

https://help.salesforce.com/s/articleView?id=000337641&type=1

Please mark as Best Answer if above information was helpful.

Thanks,
This was selected as the best answer
fiona gentryfiona gentry
I think the rule would need be modified because this logic will re-open the case. i  want to prevent re-opening of the case.