Posted By

Xhitman on 08/18/10


Tagged

Apex salesforce


Versions (?)

Salesforce Util for use IN operator with SOQL


 / Published in: Other
 

Salesforce Util for use IN operator with SOQL

  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  

You need to login to post a comment.