Varaprasad Goddumarri BlogSpot

Saturday, 27 April 2019

Converting list of objects to set of ids

List<SObject> results = Database.query(someSOQL);
Set<Id> resultIds = (new Map<Id,SObject>(results)).keySet();
Posted by varasfdc at 04:48
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

varasfdc
View my complete profile

Blog Archive

  • ►  2022 (1)
    • ►  August (1)
  • ►  2021 (3)
    • ►  July (1)
    • ►  June (2)
  • ►  2020 (1)
    • ►  January (1)
  • ▼  2019 (12)
    • ►  August (1)
    • ►  July (1)
    • ►  June (7)
    • ▼  April (1)
      • Converting list of objects to set of ids
    • ►  February (1)
    • ►  January (1)
  • ►  2018 (8)
    • ►  July (4)
    • ►  February (4)
  • ►  2016 (1)
    • ►  February (1)
  • ►  2015 (8)
    • ►  December (2)
    • ►  November (1)
    • ►  October (3)
    • ►  August (1)
    • ►  May (1)
  • ►  2014 (9)
    • ►  November (7)
    • ►  October (2)
Watermark theme. Powered by Blogger.