Skip to main content
6 events
when toggle format what by license comment
Aug 5, 2023 at 12:54 history edited Matt and Neil CC BY-SA 4.0
deleted 22 characters in body
Jan 2, 2023 at 18:04 comment added Steve Cox I agree. Super slick. One small difference between this solution and the OP's original code: given 3 accounts, 'Acme', 'ACME', and 'acme', the OP's code will result in a Set (case sensitive) of 3 names, but a SOQL query will return just one. Account.Name is required, so I think it wouldn't be possible to create those 3 accounts, but just to keep in mind in general... don't forget case sensitivity issues.
Jan 2, 2023 at 17:12 history edited cropredy CC BY-SA 4.0
edited body
Jan 1, 2023 at 19:37 vote accept User2529
Dec 15, 2022 at 21:29 comment added Phil W Very cool! And quite bizarre that this works since that implies the Map constructor fakes out SObjects from aggregate results (well, as you said, there is some inheritance going on)... I will certainly look see if I can find places to make use of this...
Dec 15, 2022 at 20:40 history answered cropredy CC BY-SA 4.0