You need to sign in to do that
Don't have an account?
identifying with apex the fields in a query that spans multiple objects
The following is example code but it gets the point across...
string query = 'select id, lastName, account.name, account.customField__c from contact'; list<contact> queryResults = Database.query(query);How can I determine the fields in the query result using code?
See: https://releasenotes.docs.salesforce.com/en-us/summer16/release-notes/rn_apex_sobject_getmap.htm
Big thanks to @Sebastian Kessel on SSE.
All Answers
See: https://releasenotes.docs.salesforce.com/en-us/summer16/release-notes/rn_apex_sobject_getmap.htm
Big thanks to @Sebastian Kessel on SSE.