Top 6 Mistakes to Avoid When Developing Magento 2 Extensions

Magento 2 is a powerful and popular eCommerce platform that has been designed to handle complex and large-scale online stores. Its modular architecture provides developers with a high degree of flexibility and customization, enabling them to create powerful extensions that can improve the functionality of the platform. However, developing Magento 2 extensions can be a … Read more

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

No log for Visualforce errors

I’m having a problem that I think has something to do with recent version because I don’t remember having this problem before. Basically, when I have an error in a Visualforce page, I don’t see the error in the Debug Log. I get an email with the error description, but it sometimes takes a long time to send it, so it’s not very useful for debugging.