You need to sign in to do that
Don't have an account?

Remove Duplicates from a List for a dropdown
SET<Customer_Health__c> CSMList = [SELECT Customer_Success_Manager__c FROM Customer_Health__c];
List<Customer_Health__c> CSMList2 = new CSMList2();
CSMList2.addAll(CSMList);
get and error for unexpected token where bolded and underlined
Any ideas to fix?
Trying to create a dropdown of athe CSMs where there is only one of each, it is a text field.
List<Customer_Health__c> CSMList2 = new CSMList2();
CSMList2.addAll(CSMList);
get and error for unexpected token where bolded and underlined
Any ideas to fix?
Trying to create a dropdown of athe CSMs where there is only one of each, it is a text field.
You need to add the text field explicitly into the set
All Answers
List<Customer_Health__c> CSMList2 = new List<Customer_Health__c>();
SET<Customer_Health__c> CSMList = new SET<Customer_Health__c>() ;
CSMList = [SELECT Customer_Success_Manager__c FROM Customer_Health__c];
CSMList2.addAll(CSMList);
Give a try with this!
Shri It doesnt like the CSMList = Query, it doesnt know how to handle the = sign
You need to add the text field explicitly into the set
It didnt work said expecting right curly bracket, found 'for';