I want to know if it is possible through a map or some form of multidimentional List type to contain more than 2 parameters. For example I have a nice SOQL here that returns a column for Contact, Quote, and CampaignMember (each row tranversed by ContactId)
Map<Contact, Quote, CampaignMember> masterMap = [
SELECT
Id,
(SELECT Id, Name FROM Quotes),
(SELECT Id FROM CampaignMembers)
FROM Contact
WHERE Id IN :contact_list
]
How do I store the result from a SOQL like this in a way I can use? My only other alternative I can foresee myself is to have two separate queries (see below) which I'm hoping is avoidable.
Map<Contact,Quote> quoteMap = [SELECT Id, (SELECT Id, Name FROM Quotes) FROM Contact WHERE Id IN :contact_list]
Map<Contact,CampaignMember> membersMap = [SELECT Id, (SELECT Id FROM CampaignMembers) FROM Contact WHERE Id IN :contact_list]