Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- caseObject.Email_Reply__c = 'replied yesterday';
- }
- else if(caseObject.EmailMessages[0].CreatedDate >= Date.today().addDays(-7)) {
- caseObject.Email_Reply__c = 'replied this week';
- }
- else {
- caseObject.Email_Reply__c = 'replied this month';
- }
- }
- }
- update caseList;
- System.debug('updated email:::' +caseList);
- }
- }
- catch(Exception exc){
- System.debug('Exception:>>>>' +exc.getMessage()+ '<<<---line numberr>>>' +exc.getLineNumber());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement