map<id,id> map1 = new map<id,id>();
map<id,id> map2 = new map<id,id>();
map1.putall(map2);
Important : Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Hi,
you can use map method putall to create only one map.
Map Methods in Salesforce
see below example.
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
My Blog:- http://mrjavascript.blogspot.in/