Tuesday, 24 September 2019

Platform App Builder Certification Maintenance (Summer 19)

1.Which attribute can an app builder use to make a dependent picklist screen component in flow screens required?
A. {!$GlobalConstant.True}
2.How can an app builder determine what flow type best meets a specific business process?
A. Flow Templates
3.An app builder needs to notify an account owner of a new support case logged by a high-risk account. Which feature should the app builder use to send a custom notification to the account owner?
A.Notification builder
4.Agents need to be able to see email attachments easily when reviewing cases. Which related list can the app builder add to the case page layout?
A.Files related list
5.Where should an app builder go to create a Lightning letterhead after enabling enhanced letterheads for Lightning email templates?
A. App Launcher>Enhanced Letterhead

step2

1.Setup-->quickfind Enter path settings-->clickon enable-->click on new path
 path Name: Milestones
 Object: Opportunity
 Record Type: Master
 Picklist: Stage
 Click Next in Step 2; we don't need to configure guidance for success

2.click on->A. When users reach a specific step in the path, help them celebrate their success with on-screen confetti.

Selected for Celebration: Closed Won
Celebration Frequency: Always
Ensure the path is Active and then click Finish
3. create opportunity record
 stage closed won

Administrator Certification Maintenance (Summer 19)

1.An administrator needs to customize hyperlinks to match corporate branding. Which setting can the administrator set to assign custom colors to hyperlinks?
A.Use brand color
2.How can different Activities Views be used once the default Activities View is enabled by the administrator?
A. Users can switch between preferences
3.Which filter option can an administrator recommend to help a manager filter on tasks for their team?
A. My team's tasks
4.By how many levels can dashboard components be sorted?
A. 2
5.Which dashboard component should an administrator use to show subtotals?
A. Lightning table

step2

1.Setup->Quickfind enter Email template--> click on Lightning Email Templates
Enable folders and Enhanced Sharing
2. Go to App Launcher--->serch apps or item Enter Email templates click on Email template
3.Click on New Foldername-->Folder Label: Sales-->click on save
4. Click on New Email Template-->Template Name: General
   Click on folder name-->select sales click on select folder
   Subject: General
  click on image insert

Platform Developer I Certification Maintenance (Summer '19)

1.What allows Flows to manipulate complex data types that are often returned from calls to web services?
A. Apex-defined data types
2.What is the benefit of using the Continuation class in Apex to make a long-running request to an external web service?
A. More long-running callouts can be made using continuations
3.Which Lightning web component configuration file tag set specifies the form factors that the component supports?
A. <supportedFormFactors>
4.Which tag adds the Lightning Web Components for Visualforce JavaScript library to a Visualforce page?
A. <apex:includeLightning/>

step2

1.Select and copy this link: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t4P000002EMv0
2.In the incognito window, paste the link into the address bar to install the package.
3.On the Salesforce login screen that appears, enter the username and password for your Trailhead Playground, then click Log In.
4.Select Install for All Users, then click Install.
5.Once the installation is complete, click Done.
Apex code

/* batch class:-BatchLeadConvert  */
public with sharing class BatchLeadConvert implements Database.Batchable<SObject>, Database.RaisesPlatformEvents{

    private final String CONVERTED_STATUS = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1].MasterLabel;

    public Database.QueryLocator start(Database.BatchableContext ctx){
        return Database.getQueryLocator([SELECT Id FROM Lead WHERE ConvertedContactId = null]);
    }

    public void execute(Database.BatchableContext ctx, List<Lead> records){
        List<Database.LeadConvert> leadConverts = new List<Database.LeadConvert>();
        for(Lead record:records){
            Database.LeadConvert lc = new Database.LeadConvert();
            lc.setConvertedStatus(CONVERTED_STATUS);
            lc.setLeadId(record.Id);

            leadConverts.add(lc);
        }
        Database.convertLead(leadConverts, true);
    }

    public void finish(Database.BatchableContext ctx){

    }
}

Trigger code
* write trigger on  BatchApexErrorEvent  object*/

trigger BatchApexErrorTrigger on BatchApexErrorEvent (after insert) {
 list<BatchLeadConvertErrors__c> bcr= new List<BatchLeadConvertErrors__c>();
   
    for(BatchApexErrorEvent event: trigger.new){
       
        BatchLeadConvertErrors__c  evrterror= new BatchLeadConvertErrors__c ();
       
        evrterror.AsyncApexJobId__c= event.AsyncApexJobId;
        evrterror.Records__c=event.JobScope;
        evrterror.StackTrace__c=event.StackTrace;   
        bcr.add(evrterror);   
    }
   
    if(bcr.size()>0){
       
        insert bcr;
    }

}