LWC vs Aura

LWC LWC uses core Web Components standards (Native browser APIs) and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, LWC is lightweight and delivers exceptional performance. Most of the code you write is standard JavaScript and HTML. LWC, you have a […]

Marketing Cloud Basics

It enables you to know your customer, personalize with intelligence, and engage across the entire journey. It’s the only integrated customer engagement platform that enables you to deliver personalized customer engagement at scale on every channel, from email to web, mobile, social, and digital advertising. Marketing Cloud covers it all.  It works with the rest […]

SFDX

Prerequisite: Enable “Dev Hub” in your Production Org. 1. Log in to the Dev Hub To authorize the Dev Hub, use the web login flow sfdxauth:web:login -d -a DevHub Log in with your credentials sfdxforce:org:open -u DevHub 2. Create Scratch Org project-scratch-def.json { “orgName”: “Cybersource”, “edition”: “Developer”, “features”: [“Communities”, “B2BCommerce”, “OrderManagement”], “settings”: { “lightningExperienceSettings”: { […]

Aggregate function on ActivityDate field

Aggregate functions MAX & MIN are not supported on the “ActivityDate” field of the Task object (idea). select Max(ActivityDate) max0, accountId from Task group by accountId The above query will throw error field ActivityDate does not support aggregate operator MAX

Platform Events

Platform event is based on Event-driven architecture. Unlike request-response communication models, software architecture built on an event-driven model decouples event producers from event consumers, thereby simplifying the communication model in connected systems. Platform events enable the flow of event messages within Salesforce and to or from external apps. Platform events cannot be updated or deleted […]

Custom Metadata Type (in Apex Test Class)

Custom Metadata can be accessed from Apex using SOQL List < Service_Provider__mdt >serviceMetadat = SELECT Object_Type__c, Provider_ Field__c FROM Service_Provider__mdt Apex code can create, read, and update (but not delete) custom metadata records, as long as the metadata is subscriber-controlled and visible from within the code’s namespace. We can edit records in memory but not […]

Enterprise WSDL vs Partner WSDL

Salesforce provides two SOAP API WSDLs for two different use cases. The enterprise WSDL optimized for a single Salesforce org. It’s strongly typed. it reflects your org’s specific configuration, meaning that two enterprise WSDL files generated from two different orgs contain different information. whenever you make a metadata change to your org, regenerate the WSDL […]

Process Builder vs Flow Builder

Process Builder Use Process Builder when you need to start a behind-the-scenes business process automatically. Processes can start when: A record is created A record is updated A platform event occurs Flow Builder Use Flow Builder to: Automate a guided visual experience. Add more functionality for a behind-the-scenes process than is available in Process Builder. […]

Apex Callout from Queueable Apex

Implement the Interface “Database.AllowsCallout” to do a callout from Queueable Apex. If you don’t implement this interface, below error is showed Callout not allowed from this future method. Please enable callout by annotating the future method. eg: @Future(callout=true) Solution public with sharing class WarehouseCalloutService implements Queueable, Database.AllowsCallouts{ private static final String WAREHOUSE_URL = ‘https://th-superbadge-apex.herokuapp.com/equipment’; public […]