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

How to fetch values from a map apex?

Asked by Darsh K Jul 31, 2023 940 views 2 answers
Share

About this question

There is a map passed as a parameter of a given apex method. I want the values of the map. The apex method is given below:

@AuraEnabled
public static String manageFilters(Map lines){
    System.debug('### lines : ' + lines);
    System.debug('### lines.values() : ' + lines.values());
    for(String key : lines.keySet()){
        System.debug('### lines.get(key) : ' + lines.get(key));
        System.debug('### >>> ' + lines.get(key));
    }
    return null;
}
The map lines is not null and contains some values, here is what I can see in the system debug of lines :
{0={FieldName=AccountId, ObjectName=Opportunity, Operator=<, Value=dfg}}
How to get the value of the objectname or fieldname of the map?


Your answer

2 Answers

Rayvshaw Latest answer

Answered on Mar 31, 2026

This explanation is very easy to understand; additionally, you can find some entertainment after work at the survival race

Was this helpful?

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.