New answers tagged

2

I recollect that this is a design quirk of AuraHandledException and that e.g. this is needed (constructor argument probably doesn't matter): AuraHandledException e = new AuraHandledException(System.Label.consulta_saldo_cliente_18); e.setMessage(System.Label.consulta_saldo_cliente_18); throw e; which is not convenient so best to wrap in a method: private ...


1

If any exception is thrown by the area of code that implements any bullet point in the list, I need to return a 'ERROR' response You'll want a try-catch inside the loop: for(AXARequest request:requests){ try { emailTemplateId=request.isNewAccountsOption ? newAccountsTemplate.Id : existingAcountsTemplate.Id; Messaging.EmailFileAttachment ...


Top 50 recent answers are included