Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

🌐MAPS - APEX

Navigating the
Salesforce
Universe: A
Map-tastic
Journey! 🗺️
NAGARAJ TANKU
🌐MAPS - APEX
CRM journey is like
navigating a maze
blindfolded ?
Enter Salesforce
Maps - your trusty
GPS for the world of
sales!🚀🗺️
NAGARAJ TANKU
Ever get lost searching
for leads?
Picture Salesforce
Maps as your Google
Maps for sales. It
doesn't just find your
destination; it
practically drives you
there!🗺️🎉
NAGARAJ TANKU
Your sales journey is
like finding hidden
treasures 🗝️💰
Salesforce Maps is the
treasure map, showing
you where "X" marks
the spot for your next
big deal!🏴‍☠️💎
NAGARAJ TANKU
So, remember, in the
Salesforce universe,
with a good map,
you're never lost -
just cruising through
new opportunities! 🗺️

NAGARAJ TANKU
Skeletons of map
Map<String, String>
employeeDetails = new
Map<String, String>();
Map<integer, String>
employeeDetails = new
Map<integer, String>();,
String>();

NAGARAJ TANKU
public class ApexMapExample {
public static void demonstrateMap() {
Map<String, String> employeeDetails = new Map<String,
String>();
employeeDetails.put('Alice', 'Sales');
employeeDetails.put('Bob', 'Marketing');
employeeDetails.put('Charlie', 'Development');
employeeDetails.put('David', 'Support');
String bobDepartment = employeeDetails.get('Bob');
System.debug('Bob works in the ' + bobDepartment + '
department.');
for (String employee : employeeDetails.keySet()) {
String department = employeeDetails.get(employee);
System.debug(employee + ' works in the ' +
department + ' department.');
}
}
public static void main(String[] args) {
demonstrateMap();
}
}

NAGARAJ TANKU
In this example:

The Map named employeeDetails


has String keys (employee names)
and String values (department
names).
Values are added to the map using
the put method.
A specific value is accessed using
the get method.
The keySet method is used to
iterate through the keys of the
map.

NAGARAJ TANKU
THANK YOU
for your attention

NAGARAJ TANKU

You might also like