File tree 1 file changed +9
-4
lines changed
force-app/components/emailScheduling/classes
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,13 @@ public with sharing class EmailSchedulingHelper {
112
112
email .SaveAsActivity__c = false ;
113
113
emailQueue .add (email );
114
114
}
115
-
116
- insert emailQueue ;
115
+ try {
116
+ insert emailQueue ;
117
+ } catch (Exception e ) {
118
+ LoggerUtility logger = new LoggerUtility ();
119
+ logger .exception (e , CRM_ApplicationDomain .Domain .HOT );
120
+ logger .publishSynch ();
121
+ }
117
122
118
123
return emailQueue ;
119
124
}
@@ -164,7 +169,7 @@ public with sharing class EmailSchedulingHelper {
164
169
update courses ;
165
170
} catch (Exception e ) {
166
171
LoggerUtility logger = new LoggerUtility ();
167
- logger .exception (e );
172
+ logger .exception (e , CRM_ApplicationDomain . Domain . HOT );
168
173
logger .publishSynch ();
169
174
}
170
175
}
@@ -202,7 +207,7 @@ public with sharing class EmailSchedulingHelper {
202
207
insert tasks ;
203
208
} catch (Exception e ) {
204
209
LoggerUtility logger = new LoggerUtility ();
205
- logger .exception (e );
210
+ logger .exception (e , CRM_ApplicationDomain . Domain . HOT );
206
211
logger .publishSynch ();
207
212
}
208
213
}
You can’t perform that action at this time.
0 commit comments