Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to get my desired Map id list sobject salesforce?

Asked by Antony Bence Apr 17, 2023 1.0K views 1 answer
Share

About this question

I have below code where I face error as incompatible type. Can someone please help me resolve it? I can't get how to populate it.

Apex Code

 Map> accATLMap = new Map>();
.........
for(Account_Territory_Loader_vod__c atl: atlList) {
 if(accATLMap.get(atl.account_vod__c) == null)
 accATLMap.put(atl.account_vod__c,atl); // This line gets error out
}

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.