You need to sign in to do that
Don't have an account?
s_mac
Map methods in apex
I have a map<String,String>
I have a key,value like salesforce=>Developer in my map,
Now i have to check for the key in my map and append value to my existing value to a particular key,like
Salesforce=>Developer,Adminstrator
if(map.containsKey(''Salesforce){
get the value for the key and append a new value to the existing value
}
else{
insert new values to the map
}
Thanks
I have a key,value like salesforce=>Developer in my map,
Now i have to check for the key in my map and append value to my existing value to a particular key,like
Salesforce=>Developer,Adminstrator
if(map.containsKey(''Salesforce){
get the value for the key and append a new value to the existing value
}
else{
insert new values to the map
}
Thanks
Let us know if this will help you
These posts will cover about list,set,map usage and methods available and how to use map in lightning components,
https://www.sfdc-lightning.com/2018/09/collection-in-salesforce.html
https://www.sfdc-lightning.com/2018/09/how-to-use-map-in-lightning-component.html
"Try this code."
If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi