Salesforce Util for use IN operator with SOQL


/ Published in: Other
Save to your folder(s)

Salesforce Util for use IN operator with SOQL


Copy this code and paste it in your HTML
  1. public with Util{
  2. public static Set<id> getIds(sObject[] objList){
  3. Set<id> retval = new Set<id>();
  4. for(sobject thisObj: objList){
  5. retval.add(thisObj.id);
  6. }
  7. return retval;
  8. }
  9. }

Report this snippet


Comments


You need to login to view comments.