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 Alert

Hello,
Can anyone help me about how to give alert in salesforce.
Scenario: I have to give alert 2 weeks before expiry date.
so please help how can i achieve this requirement . Do I need to use validation rule or is there any other way?
If we have to use validation rule how to do using it??
Best Answer chosen by Admin User 3354
Admin User 3354Admin User 3354
hello,

I have written a scheduler class and applied it on my required conditions. When my condition is satisfied I send mails as an alert.
And it worked.
 

All Answers

Russell baker 1Russell baker 1
Hi,
I am not sure what are your requiorments but for time based aleart you can use workflow rules.
click on setup--create--workflow and approval--workflow rule and create workflow as per your requirment and object.
add time based action --email aleart.

Let me know if you need any further help.

Russell
Manuel Jiménez GonzálezManuel Jiménez González
https://help.salesforce.com/HTViewSolution?id=000005245
Karim BAHAJIKarim BAHAJI
Hi,

You can also use the Process builder, you define your criterias and you can creat a chatter alert if you want...
Admin User 3354Admin User 3354
Hello
Sorry for late reply.
I still need a help on it.
I want as email alert to be send for all 14 days before my expiry date.
So how can i achieve this.
 
Karim BAHAJIKarim BAHAJI
Hi,

Here some examples : https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_examples.htm&language=US 
Admin User 3354Admin User 3354
hello,

I have written a scheduler class and applied it on my required conditions. When my condition is satisfied I send mails as an alert.
And it worked.
 
This was selected as the best answer