I am trying to query records and collect them in a Set as below
Set<abc__c> a = [select id from abc__c limit 2];
but getting the following error Illegal assignment from LIST to SET.Can't I collect the result of a query in Set ?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community