Limitations of Apex Replay Debugger in VS Code
global class Opportunity_EmailService implements Messaging.InboundEmailHandler { public Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) { Messaging.InboundEmailResult result = new Messaging.InboundEmailResult(); //try{ List<Opportunity> oppsToUpsert = new List<Opportunity>(); List<Account> agenciesToUpsert = new List<Account>(); List<Policyholder__c> policyholdersToUpsert = new List<Policyholder__c>(); for(Messaging.InboundEmail.BinaryAttachment att : email.binaryAttachments){ String attBody = att.Body.toString(); String firstRow = attBody.split('rn', 2)[0]; system.debug(firstRow); List<String> columns = firstRow.split('\|'); Integer columnCount = … Read more