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
Z man0Z man0 

How to prevent a user from reopening a case after 10 days from the close date ?

Hi Everone,

Happy New Year :)

Below is my case scenario: 

Users can close the case and re-open it for a period of 10 days; After 10 days, the case shouldn't be re-opened. Only certain profiles can reopen it after this point in time. I am thinking of Validation rule to implement it; Kindly let me know if you have any ideas for implementing this !

 
Best Answer chosen by Z man0
Akhil AnilAkhil Anil
Hi,

You can definitely build a validation rule for this with a formula like below.
AND(
TODAY() - DATEVALUE(CloseDate) > 10,
TEXT(Status) <> "Closed",
ISCHANGED(Status),
TEXT(PRIORVALUE(Status)) = "Closed",
$Profile.Name <> "Profile Name 1 here",
$Profile.Name <> "Profile Name 2 here"
)

In the above formula you just have to include the name of the profiles who are allowed to to re-open the cases.

Kindly mark it as an answer if that works !

All Answers

Akhil AnilAkhil Anil
Hi,

You can definitely build a validation rule for this with a formula like below.
AND(
TODAY() - DATEVALUE(CloseDate) > 10,
TEXT(Status) <> "Closed",
ISCHANGED(Status),
TEXT(PRIORVALUE(Status)) = "Closed",
$Profile.Name <> "Profile Name 1 here",
$Profile.Name <> "Profile Name 2 here"
)

In the above formula you just have to include the name of the profiles who are allowed to to re-open the cases.

Kindly mark it as an answer if that works !
This was selected as the best answer
Z man0Z man0
I will be working on it later today! I will keep you posted or mark it as best answer once I am done with it! -Thanks :)