How to populate maximum time string repeat in record /Child Record - Similar Rollup summary Max function.
Hi Rowdies, This is a Sample code for displaying maximum time repeat string in child records like Invoice and Invoice line. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9744265961313227" crossorigin="anonymous"></script> Set<String> strSetTaxCode = new Set<String>(); for (custom__c obc : [SELECT Id , customfield__c, customfield2__c FROM custom__c ]){ if(String.isNotBlank(oinvline.customfield__c)){ lstTaxCode.add(oinvline.customfield__c); } } for (string settemp : lstTaxCode){ strSetTaxCode.add(settemp); } for(String str: strSetTaxCode){ Integer countofChar = 0; for(String strl: lstTaxCode ){ i...