You need to sign in to do that
Don't have an account?
Ad_Infosys
Query in using Maps
I want to create a map
Map<ID, Contact> m = new Map<ID, Contact>([select id, lastname from contact])
The key value ID will be the record id for contact.
I want Account ID in the key set for every record of contact returned. How can I pick that.
micwa
Code: