Created
March 23, 2019 19:28
-
-
Save sfmishra/2cd8cde65cafdf72829c36f1cecb9f6d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 TowerMapController { | |
@AuraEnabled | |
public static List<Tower__c> getAllTowers() { | |
String theObject = 'Tower__c'; | |
List<String> theFields = new List<String>{'Id', 'Name', 'State__r.Name', 'Location__Latitude__s', 'Location__Longitude__s'}; | |
List<String> theFilters = new List<String>(); | |
String sortField = 'Name'; | |
String sortOrder = 'ASC'; | |
List<Tower__c> allTowers = UtilityClass.queryObjects(theObject, theFields, theFilters, sortField, sortOrder); | |
return allTowers; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment