How to prepare or get set of record ids from SOQL query without using for loop in apex - Salesforce Globe For You
Sample Code:
Set<Id> setLeadIds = new Set<Id>();
setLeadIds = new Map<Id,Lead>([Select id,name from Lead]).keyset();
system.debug('setLeadIds:'+setLeadIds);
Output
No comments:
Post a Comment