Skip to main content
9 events
when toggle format what by license comment
Aug 2, 2019 at 10:45 history edited Salesforce crm CC BY-SA 4.0
added 1317 characters in body
Jul 29, 2019 at 15:27 comment added Phil W The main reason this isn't working is because you update the "cc.Attachments" which are queried separately. You are not updating the actual input attachments.
Jul 29, 2019 at 15:26 answer added Sebastian Kessel timeline score: 1
Jul 29, 2019 at 15:25 comment added Phil W You need to avoid performing queries inside a loop - you query the cases in a loop over the attachments. If called from a trigger, you may get 200 attachments into a single trigger invocation and exceed your permitted number of query operations.
Jul 29, 2019 at 15:20 comment added user2945545 @salesforce crm - on what object is this trigger firing ? what is the trigger event ?
Jul 29, 2019 at 15:19 history edited Derek F CC BY-SA 4.0
Edited title to be a bit closer to the actual issue, added attachment tag
Jul 29, 2019 at 15:16 comment added Derek F Welcome to SFSE! Please take the tour and read How to Ask. It's good that you've included your code (really hard to find issues without that). It'd also be helpful to include the code for the trigger that calls this AttachmentTriggerHandler class. It could be that you simply need to add a DML statement, but it's hard to say if you need that (or if that'd even fix your problem) without seeing the trigger too.
Jul 29, 2019 at 15:12 history edited Derek F CC BY-SA 4.0
Tidied up code formatting, forcing syntax highlighting
Jul 29, 2019 at 15:05 history asked Salesforce crm CC BY-SA 4.0