Created
July 7, 2019 05:15
-
-
Save arun12209/bffa7efa7ef9fbc9621a6c2a0f8aa1df to your computer and use it in GitHub Desktop.
LightningMapCntrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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