+ Start a Discussion
kasa venkat 14kasa venkat 14 

if i create a case no one can modifyed before 48 hours, i want to send an email to the user or a group? how can i do this can any one suggest?

if i create a case no one can modifyed before 48 hours, i want to send an email to the user or a group? how can i do this can any one suggest?
kasa venkat 14kasa venkat 14
i write workflow like this
AND( 
RecordType.DeveloperName == 'support', 
TEXT(Type__c) == 'issue', 
CreatedDate == LastModifiedDate 
)
Abhishek Pal 33Abhishek Pal 33
Query on case object for LastModifiedDate<48 and then use below code for email:-

To add the user: query on groupmember and user object

 Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
               mail.setToAddresses(toAddresses);
               mail.setSubject(sSubject);
               mail.setPlainTextBody(sMessage);
               Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

If the answer solve your issue. Please mark it as "Best Answer".
Ankit GargAnkit Garg
You have to implement time based action on workflow. 
kasa venkat 14kasa venkat 14
i create a time based workflow  is ( 1 Hour after RuletriggerDate)
THIS one i created  ankit.
and i want to create a customfield of "lastmodifieddate",why because last modified date and created date are not same at the time creating the case.
 
kasa venkat 14kasa venkat 14
so can  suggest how can i create the formula field of lastmodified date,