+ Start a Discussion
SFDC_LearnerSFDC_Learner 

Maps with Maps

Hi,

 

map<id,map<id,XYZ__c>> m1=new  map<id,map<id,XYZ__c>>();

 

How can i use nested maps as shown in above syntax.

Please send a sample example.

 

 

VJSFDCVJSFDC

hi

here is the example:

 

 

Map<String, String> country_currencies = new Map<String, String>();

Map<ID, Set<String>> m = new Map<ID, Set<String>>();

Map<ID, Map<ID, Account[]>> m2 = new Map<ID, Map<ID, Account[]>>();

 

the Map nesting can be up to five levels.

SFDC_LearnerSFDC_Learner

Hi,

 

would you please share a sample program?