diff --git a/force-app/main/default/classes/ErrorMailReceiver.cls b/force-app/main/default/classes/ErrorMailReceiver.cls index 5119dc9..a489849 100644 --- a/force-app/main/default/classes/ErrorMailReceiver.cls +++ b/force-app/main/default/classes/ErrorMailReceiver.cls @@ -1,7 +1,7 @@ global with sharing class ErrorMailReceiver implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail mail, Messaging.InboundEnvelope envelope) { - insert as system new AppError__c(txl_FullMailBody__c = mail.plainTextBody); + insert as system new AppError__c(txl_FullMailBody__c = mail.plainTextBody?.left(131072)); return new Messaging.InboundEmailResult(); }