My Top 10 Features for Developers in Summer’19 Release

#Salesforce #LightningPlatform #Summer19 #BeReleaseReady

1. Fire Platform Events from Batch Apex Classes (Generally Available)

public with sharing class YourSampleBatchJob implements Database.Batchable<SObject>, 
Database.RaisesPlatformEvents{
// class implementation
}

2. Make Long-Running Callouts with Continuations in Lightning Component

3. Configure Your Component for Different Devices

<design:component label="Hello World">
<design:attribute name="subject" label="Subject" description="Name of the person you want to greet" />
<design:attribute name="greeting" label="Greeting" />
<design:supportedFormFactors>
<design:supportedFormFactor type="Large"/>
<design:supportedFormFactor type="Small"/>
</design:supportedFormFactors>
</design:component>

4. Limit User Access When Delegating Access to Metadata (Generally Available)

5. Monitor Custom Metadata Type Use in System Overview

6. Store More and Larger Debug Logs

7. Process Change Event Messages in Apex Triggers

trigger MyAccountChangeTrigger on AccountChangeEvent (after insert) {
for (AccountChangeEvent event : Trigger.New) {
// Process event messages
}
}
Test.enableChangeDataCapture();
Test.getEventBus().deliver();
@isTest static void testChangeEventTrigger() {
// Enable all Change Data Capture entities for notifications.
Test.enableChangeDataCapture();

// Insert one or more test records
// ...

// Deliver test change events
Test.getEventBus().deliver();

// Verify the change event trigger’s execution
// ...
}

8. Choose the Publishing Behavior for Your Platform Event

9. ConnectApi (Chatter in Apex): New and Changed Classes

10. Process Smaller Event Batches in Platform Event Triggers and Recover from Exceptions

trigger ResumeEventProcessingTrigger on Low_Ink__e (after insert) {
for (Low_Ink__e event : Trigger.New) {
// Process the event message.
// ...

// Set the Replay ID of the last successfully processed event message.
// If a limit is hit, the trigger refires and processing starts with the
// event after the last one processed (the set Replay ID).
EventBus.TriggerContext.currentContext().setResumeCheckpoint(event.replayId);
}
}

Say Hello To Me On: Twitter | Facebook | Linkedin | MyBlog | Blogger | MyWebsite

#HappyLearning #Platform #SalesforceDeveloper #BeReleaseReady #Salesforceguy

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Swayam Chouksey

Salesforce Evangelist || Blockchain Enthusiast || Architect || Trainer || Blogger || Believes in turning Ideas to reality || Day Dreamer || Happy Person