Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created July 7, 2019 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/bffa7efa7ef9fbc9621a6c2a0f8aa1df to your computer and use it in GitHub Desktop.
Save arun12209/bffa7efa7ef9fbc9621a6c2a0f8aa1df to your computer and use it in GitHub Desktop.
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