1 个回答
Hi Anupama,Lets say you have Map - Map<Id, String> AccountIdAndNameMap = new Map<Id, String>();then you can check like - AccountIdAndNameMap.containsKey(Id) ; It will give you whether perticular id exists in map or not.if you get value then you can assign it to new String variable.ex,String Name ;if(AccountIdAndNameMap.containsKey(Id)){ Name = AccountIdAndNameMap.get(Id);}I hope it helps you to resolve your query..