Created
June 16, 2016 16:03
-
-
Save jeffdonthemic/266c740a875818c87fca8d8278b25a38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Product2> products = [select id, name from product2 where productcode = 'foo']; | |
Set<Id> ids = (new Map<Id,Product2>(products)).keySet(); | |
System.debug(ids.size()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment