New answers tagged

2

As stated in the documentation: After October 12, 2019, support, updates, documentation, and downloads for the Force.com IDE will no longer be available. The only way you can hope to even get a copy of it would be to copy the installed files from your current computer to the new one, and this may or may not work. VS Code with DX actually very easy to ...


3

The problem here is that once you find one case that satisfies your rollup criteria, your code assumes that all of the other cases also satisfy that criteria as well (that's whats.Cases__r.size() give you, the number of related Cases). To do this via a trigger on Case (this would probably be more reliable in a trigger on Ship__c), you'd probably want to ...


2

Your logic as written sets the Count_X_Case__c fields on each Ship__c record to the total count of related Cases when any one of the Cases has the Type X: for(Ship__c s : shiplist){ for(Case c: s.Cases__r){ if(c.Type = 'A' && c.Type != null){ // This is incorrect - s.Cases__r.size() is the count of all Cases ...


Top 50 recent answers are included