Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LightningMapCntrl
public class LightningMapCntrl {
@AuraEnabled
public static List<Contact> fetchContacts(String accountId){
List<Contact> conList = [Select Id,Name,Phone,MailingCity,MailingStreet,MailingPostalCode,MailingState,MailingCountry from Contact where accountId=:accountId];
return conList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment