Monday, November 4, 2019

Platform Developer I Certification Maintenance (Summer '19)

Step -1 

1. What allows Flows to manipulate complex data types that are often returned from calls to web services?
Ans. 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?

Ans. 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?Ans. <supportedFormFactors>


4. Which tag adds the Lightning Web Components for Visualforce JavaScript library to a Visualforce page?Ans. <apex:includeLightning/>





Step- 2


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

7. Modify Batch class(first line):
    public with sharing class BatchLeadConvert implements Database.Batchable<SObject>,       Database.RaisesPlatformEvents{\
              .........
  }

8.Create below Trigger from developer console: 

  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;
    }

 }

4 comments: