Platform Developer I Certification Maintenance (Winter ’19)


Platform Developer I Certification Maintenance (Winter ’19)

Q-1 Which method of the DescribeSObjectResult class allows you to access record types by their developer name? ANS:

Q-2 Which Apex class includes new methods to verify digital and HMAC signatures? ANS:- System.Crypto

Q-3 Your org has My Domain enabled. What is the most efficient method to obtain a valid session ID to make an HTTP callout from asynchronous Apex code to Salesforce APIs? ANS:-
Use System.UserInfo.getSessionId().

Q-4Which annotation allows a developer to make the result of an Apex method storable for Lightning components?ANS:-

Q-5:Which merge field allows you to isolate untrusted third-party content with <apex:iframe> tag in Visualforce?ANS:-

Q-5: Prior to installing an unlocked package, which object should a developer query using the Tooling API to list the packages it depends on? ANS:- SubscriberPackageVersion

public inherited sharing class TowerMapUtilClass {
     public static List queryObjects(String theObject, List theFields, String theFilter, String sortField, String sortOrder) {
          String theQuery = 'SELECT ' + string.join(theFields, ',');
          theQuery += ' FROM ' + theObject;
          if(!String.isEmpty(theFilter)) {
               theQuery += ' WHERE ' + theFilter;
          if(!String.isEmpty(sortField)) {
               theQuery += ' ORDER BY ' + sortField;
               if(!String.isEmpty(sortOrder)) {
                    theQuery += ' ' + sortOrder;
          return database.query(theQuery);
public inherited sharing class TowerMapControllerClass {
     public static List getAllTowers() {
          String theObject = 'Tower__c';
          List theFields = new List{'Id', 'Name', 'State__r.Name', 'Tower_Location__Latitude__s', 'Tower_Location__Longitude__s'};
          String theFilter = '';
          String sortField = 'Name';
          String sortOrder = 'ASC';
          List allTowers = TowerMapUtilClass.queryObjects(theObject, theFields, theFilter, sortField, sortOrder);
          return allTowers;
Add below code Towermap.cmp

        mapMarkers="{! v.mapMarkers }"
        markersTitle = "{!v.markersTitle}"
        zoomLevel="5" />

About the author

nayakdillip administrator

Leave a Reply