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
RajashriRajashri 

how can i send email notification after some time interval using salesforce?

Hi ,

 

i have created Email template in salesforce and i want to send the escalation mail to users after some time intervals.

so how can i send the Email Notification template to users after certain period of time based on some conditions?

 

Thanks

sfdcfoxsfdcfox

Use a Time-Based Workflow Rule. See Setup > App Setup > Create > Workflow & Approvals > Workflow Rules.

RajashriRajashri

Thanks for the response!!

i want to specify the rule criteria that if requested_Date is changed  if appr_Date is not modified then send mails to managers..

How can i specify this using apex syntax? 

 

sfdcfoxsfdcfox

You'd use a normal formula, not Apex Code. It would appear as this:

 

AND( not( isnew() ), requested_date__c <> priorvalue( requested_date__c ), appr_date__c = priorvalue( appr_date__c ) )

 

RajashriRajashri

Hi,

Thanks for your help.but i am getting an error function isnew() may not be used in this type of formula.

 

Data type of  requested_date__c is datetime and appr_date__c is date.

 

do i need to change the datatype or what?

 

Can you please advice?

 

Anil MeghnathiAnil Meghnathi

Hi

IF you want to send the email after specific time period than you can schedule it.According to me it will be best for you.you can schedule for every hour to yaerly bases.if yo want then tell me ill send you best link for it.

 

Thanks

Anil