Skip to main content

Timeline for Iterate over queried lookup fields

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Feb 16, 2016 at 16:55 history edited Davin Casey CC BY-SA 3.0
added 328 characters in body
Feb 16, 2016 at 16:46 comment added Davin Casey It should work for the OP, if you replace Account in my example with Invoice__c. It should also be possible to transverse multiple levels by using multiple getSObject() calls together.
Feb 16, 2016 at 16:41 comment added Adrian Larson Fair enough. Your methodology still doesn't handle traversing multiple levels. Also it seems like you're doing more work than you need to with the replacement.
Feb 16, 2016 at 16:39 comment added Davin Casey Quite right, that's what I get for answering a question first thing in the morning. Updated my answer.
Feb 16, 2016 at 16:39 history edited Davin Casey CC BY-SA 3.0
Updated to include the actual answer.
Feb 16, 2016 at 15:27 comment added Adrian Larson OP is about how to call get, not how to run the query.
Feb 16, 2016 at 8:18 history answered Davin Casey CC BY-SA 3.0