Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<String,String> test = new Map<String,String>();
- Map<String,String> sample = new Map<String,String>();
- List<String> orderList = new List<String>();
- for(String t :sample.keySet()){
- String tt = sample.get(t);
- for(String s :test.keySet()){
- String ss = test.get(s);
- if(tt.equals(s)){
- orderList.add(ss);
- System.debug('OrderList:::'+orderList);
- }
- }
- }
- Response : Kalyan K
- Response : Kalyan K, Kalyank@tcs.com
- Response : Kalyan K, Kalyank@tcs.com, Attended
- Response : Kalyan K, Kalyank@tcs.com, Attended,Chennai
- Response : Kalyan K, Kalyank@tcs.com, Attended, Chennai,Tamilnadu
- Response : Kalyan K, Kalyank@tcs.com, Attended, Chennai, Tamilnadu, India
- Response : Kalyan K, Kalyank@tcs.com, Attended, Chennai, Tamilnadu, India, 9857455552
- how can I separate each value for assigning to the other object like below
- Lead le = new Lead();
- le.LastName = ss;// here map kalyan k
- le.LightiningEd__AdobeEmail__c = ss; // here map Kalyank@tcs.com
- le.Status = ss; //here map Attended
- le.LightiningEd__City__c = ss; // here map Chennai
- le.LightiningEd__State__c = ss; //here map Tamilnadu
- le.LightiningEd__Country__c = ss; here map india
- le.MobilePhone = ss; //here map 9857455552
- LeadList.add(le);
Add Comment
Please, Sign In to add comment