anusha(salesforce developer)

Thursday 9 June 2016

Iterating through Map in Salesforce

Iterating through Map in Salesforce

string tempname='';
string tempdesc='';

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

For(String tempVarialbe: mapObj.ketset())
{
tempname= tempVarialbe; [To get the KEY VALUE]
tempdesc= mapObj.get(tempVarialbe); [Using Key value to get the corresponding VALUE]
}

1 comment:

  1. your explaination is good but you have to explain deeply

    ReplyDelete