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
Admin User 3354Admin User 3354 

To give Email Alert

I want an email alert to be send all 14 days before my expiry date.
how to do it??
How can i achive this?? Do I have to use schedular apex??
Help needed asap.
Thanks.
srinu vassrinu vas
Hi Admin User 3354,

no need to go with schedular apex,

all u need to do is time dependent work flow.....
there u need to select before option and 14 days and then select perticular expiry date field
 
Steve_EarlySteve_Early
In order to do that your Workflow Rule has to be set up to trigger when the record is "Created" or "Created, and any time it's edited to subsequently meet criteria". You cannot set up a time dependent action if the WF Rule is set up to trigger when the record is "Created, and every time it's edited.".

On the second page where you see Immediate Workflow Action, below that is the section for "Time-Dependent Workflow Actions" Set the workflow action to trigger 14 days before the expiration date, and add your Email Alert here.