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
Phani Pydimarry 4Phani Pydimarry 4 

How to make a checkbox turn to false in two days

I am calling a future class where an email is sent to the customer, a checkbox is turned into TRUE to avoid duplication. The email is triggered when a subscriber's end date is 15 days before. 

Now this is a subscription renewal situation and the user subscribes and again continues the package. But when the renewal arrives before 15 days again, this checkbox is true so my logic would overlook this account. 

How can I turn this checkbox to false again  after 2 days so that this email is again triggered.?

Note this check box is not read only and I would want this to be turning to true when the next iteration of expiry comes up. 

How can I achieve this scenario?

 
GAURAV CHOPRAGAURAV CHOPRA
In case of reneral the subscriber's end date values changes to some future value. You can write a workflow to detect the cahnge of subscriber's end date and if this is a future date then you can change the value of this checkbox to false. This will continue your flow for future renewal scenarions.
GauravGargGauravGarg
Hi Phani,

Please create a Time Triggered Workflow Rule to achieve this. 

Thanks,
Gaurav