Friday, 1 March 2019

Trailhead and Webassessor Linking steps

https://trailhead.salesforce.com/credentials/verification

1.Certification Holders: Check Your Status: Enter your mail id and check the recaptch and click on request

2. you Received the mail display what certification was pending display

3. scroll down below
        Current Trailhead and Webassessor Linking Status:

        Linking Status: not linked

        Linked Trailhead Profile: not linked

       Not Linked?:

       Use this link and your unique verification code (ac37f53), to link your accounts.
4. click on the Link
5. Login Trailhead
6. click in salesforce login Enter your Dev org credentials
7. display the link your trailhead and webassessor accounts
Below enter the unique verification code sent your email: already you received code above email enter the code:ac37f53
8. click on Link account
9.click on Maintain Now

Platform Developer I Certification Maintenance (Summer '18)

1. Which Visualforce code can a developer use to provide the Lightning look and feel to Visualforce pages?
A. <apex:includeLightning/> in the <style> element
B. lightningStylesheets=”true” in the <style> element
C. lightningStylesheets=”true” in the <apex:page> element
D. apex:includeLightning=”true” in the <apex:page> element
2.How can a developer detect the current user’s Salesforce user interface type in JavaScript on a Visualforce page?

A. Use the UserInfo.getUITheme() function.
B. Use the UITheme.getUITheme() function.
C. Use the Organization.getSettings() function.
D. Use the SessionManagement.getCurrentSession() function.
3. Which Apex method eliminates the need for a SOQL query to determine the developer name for a record type?
A. System.RecordTypeId.getDeveloperName()
B. Schema.RecordTypeInfo.getRecordTypeId()
C. System.String.getDeveloperName()
D. Schema.RecordTypeInfo.getDeveloperName()

4. Which class enables a developer to test platform events in Apex unit tests?
A. Use the @IsTest annotation.
B. Use the HTTPCalloutMock class.
C. Use the EventBus.TestBroker class.
D. Use the @RemoteAction annotation.

5.How can a developer troubleshoot governor limit problems in transactions that include multiple flows?
A. Use breakpoints in Developer Console.
B. Add system.debug() statements to the flow.
C. Set the Workflow debug level to Finer in the debug log.
D. Add flow screens to display limits during the flow

6. What can a developer reference to ensure that a consistent value is used in the criteria for multiple validation rules?
A. A list custom setting in the validation rules
B. A global value set in the validation rules
C. A custom permission in the validation rules
D. A custom metadata type in the validation rules

7. Which statement is true about the new Lightning URL format?
A. URLs that use /one/one.app in emails templates must be updated.
B. Components with existing URLs that use /one/one.app will continue to work.
C. The change applies to all Salesforce apps, console apps, mobile versions, and communities.
D. Installed Lightning components will automatically translate the old URL to the new format.

8.How can a developer redirect a user to a Lightning page from a Visualforce page?
A. Generate a URL using UserInfo.getUITheme().
B. Generate a URL using PageReference.getURL().
C. Generate a URL in the format /lightning/r/sObject/sObjectID.
D. Generate a URL in the format /one/one.app#/sObject/sObectID.

Platform App Builder Certification Maintenance (Summer '18)

1.Which feature can an App Builder use to get an industry certification number for an account based on its NAICS field?
A) Workflow rules
B) Processes
C) External Services
D) Outbound Messages

2.How can an App Builder protect contact information from being seen by the marketing team when that contact is added to a campaign?
A) Set campaign member sharing settings
B) Remove the Contact field from page layouts
C) Create a cross-object formula on campaign with contact information filtered by profile
D) Add campaign member sharing rules

3.Which new piece of information is now included in flow and process error emails?
A) The step name that caused the error
B) The organization name where the error occured
C) The variable name that caused the error
D) The validation rule name where the error occured

4.A process fails with a “Too many SOQL calls” error. How can an App Builder troubleshoot the problem?
A) Add an email alert to the process that includes error information
B) Use the debug log and set workflow debugging to FINER
C) Add an update record action to save the error message on the record
D) Configure an ErrorHandler Apex class on the process

5.How can an App Builder associate a flow with a specific record for Lightning console?
A) Use the Guided Action List
B) Add the flow to the page layout
C) Use a Record Action record
D) Add the flow to the utility bar

6.How can an App Builder provide rich text data entry to Salesforce mobile users?
A) Create a flow and add that to the mobile layout
B) Install a rich text editor package from the appexchange
C) Add the rich text standard Lightning component to a record page in Lightning App Builder
D) ensure the Rich Text field is included on a page layout used by your mobile users

7.How can an App Builder organize reports for a global sales team so that each region sees reports specific to them?
A) Define report sharing settings
B) Disable enhanced folder sharing
C) Create report subfolders under the Sales Report folder
D) Use report scheduling

8.Which feature can an App Builder use to share a Lightning dashboard with users each morning?
A) Dashboard subscriptions
B) Reporting snapshots
C) Process builder email alerts
D) Process builder email alerts

1. an AppBuilder is building a flow for accounts, and needs to know if there are more open cases or more closed cases on each account.which flow feature would the app builder use to determine the answer?
A. the equals count assignment operator
b. Flow variables in a loop element
c. flow formulas in a comparision element
D. Record lookup elements for cases

Platform Developer I Certification Maintenance (Winter '19)

1. Which method of the DescribeSObjectResult class allows you to access record types by their developer name?
A.getRecordTypeInfoByDeveloperName()

2. Which Apex class includes new methods to verify digital and HMAC signatures?
A. system.cypto


1.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?
A.Use System.UserInfo.getSessionId().

2.Which annotation allows a developer to make the result of an Apex method storable for Lightning components?

A. @AuraEnabled(cacheable=true)

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

A. $IFrameResource

4.Prior to installing an unlocked package, which object should a developer query using the Tooling API to list the packages it depends on?

A. SubscriberPackageVersion

TowerMapControllerClass.apxc
--------------------------------------
public inherited sharing class TowerMapControllerClass {
     @AuraEnabled
     public static List<Tower__c> getAllTowers() {
          String theObject = 'Tower__c';
          List<String> theFields = new List<String>{'Id', 'Name', 'State__r.Name', 'Tower_Location__Latitude__s', 'Tower_Location__Longitude__s'};
          String theFilter = '';
          String sortField = 'Name';
          String sortOrder = 'ASC';
          List<Tower__c> allTowers = TowerMapUtilClass.queryObjects(theObject, theFields, theFilter, sortField, sortOrder);
          return allTowers;
     }
}

TowerMapUtilClass.apxc
-------------------------------
public inherited sharing class TowerMapUtilClass {
     public static List<sObject> queryObjects(String theObject, List<String> 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);
     }
}

Towermap.cmp
------------------
<aura:component implements="flexipage:availableForAllPageTypes" controller="TowerMapControllerClass" access="global" >
     <aura:attribute name="mapMarkers" type="Object" access="PRIVATE" />
     <aura:attribute name="markersTitle" type="String" access="PRIVATE" />
     <aura:handler name="init" value="{!this}" action="{!c.handleInit}"/>
     <aura:if isTrue="{!!empty(v.mapMarkers)}" >
          <!-- Create lightning:map here -->
       
         &lt;lightning:map
        mapMarkers="{! v.mapMarkers }"
        markersTitle = "{!v.markersTitle}"
        zoomLevel="5" />
     </aura:if>
</aura:component>

TowermapHelper.js
-----------------------
({
     initHelper : function(component, event, helper) {
          helper.utilSetMarkers(component, event, helper);
     },
     utilSetMarkers : function(component, event, helper) {
          let action = component.get("c.getAllTowers");
          action.setCallback(this, function(response) {
               const data = response.getReturnValue();
               const dataSize = data.length;
               let markers = [];
               for(let i=0; i < dataSize; i += 1) {
                    const Tower = data[i];
                    markers.push({
                        'location': {
                             'Latitude' : Tower.Tower_Location__Latitude__s,
                             'Longitude' : Tower.Tower_Location__Longitude__s
                        },
                        'icon': 'utility:Tower',
                        'title' : Tower.Name,
                        'description' : Tower.Name + ' Tower Location at ' + Tower.State__r.Name
                   });
               }
               component.set('v.markersTitle', 'Out and About Communications Tower Locations');
               component.set('v.mapMarkers', markers);
          });
          $A.enqueueAction(action);
     }
})

Platform App Builder Certification Maintenance (Winter '19)

1.Which behavior is true when using the ‘Deploy processes and flows as active’ feature?

A. Apex tests must cover 75% of all active Processes and autolaunched Flows.

2.How should an App Builder ensure that Users are able to see Survey responses?

A.Grant access to the Survey object then direct users to the Survey Invitations related list

3.How can a user share the contents of a Salesforce Folder with customers in Lightning?

A. Create a public link to a Shared Folder.

4.How can an App Builder configure a Guided Action to be mandatory on a record?

A. Set the Is Mandatory field in a Process that launches the Flow.

Administrator Certification Maintenance (Winter ’19)

1.On which object can users assign a new owner to multiple records at one time from a Lightning Experience list view?

A.Leads

2.How can a user place the cursor in the list view search field without navigating to it with the tab button or the cursor?

A.keyboard shortcut g+f

3.Which Forecast Type should the System Administrator configure to make territory forecasts available to the sales team?

A.Opportunity Revenue by Territory

4.How many decimal places can the user choose to display when creating a dashboard component?

A.Up to 5

5.What will display in the search results when a user uses the quick search on the reports tab?

A.The reports or folders displayed are based on what is selected on the side menu

6.he customer community manager wants to gamify the community by recognizing members' specific accomplishments. What can the System Administrator configure to accomplish this goal?

A.Recognition Badges

7.What has to be enabled to allow users to save Chatter posts before they appear in the feed?

A.Allow draft posts

8.How can a standard user adjust the page layout to display more fields in the same amount of space?

A. change the density from comfy to compact