Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LightningMapCntrl
public class LightningMapCntrl {
@AuraEnabled
public static List<Account> fetchAllAccounts(){
List<Account> accList = [Select Id,Name,Website,BillingCity,BillingStreet,BillingPostalCode,BillingState,BillingCountry from Account ];
return accList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment