Work with the Lightning Map Component and Apex Inherited Sharing — The Salesforce Dork


This is the hands on challenge from the Platform Developer 1 Winter 19 Certification Maintenance. UtilityClass public inherited sharing class UtilityClass { public static List queryObjects(String theObject, List theFields, List theFilters, String sortField, String sortOrder) { String theQuery = ‘SELECT ‘ + string.join(theFields, ‘,’); theQuery += ‘ FROM ‘ + theObject; boolean firstFilter = true; […]

via Work with the Lightning Map Component and Apex Inherited Sharing — The Salesforce Dork