Create Quick Actions with Lightning Web Components(LWC) and learn how to use Lightning Web Components for Quick Action (Headless and Screen).
Category: Code Sample
Styling Hooks for Lightning Web Components
So today we will check what are Styling Hooks and how we can create Styling Hooks for Lightning Web Components. With existing Lightning Web Components its hard for the developers to do CSS customization. We need to use hacks to overwrite CSS and with any UI update they might stop working. So from Winter 21…
Error Handling in Lightning Web Components
Today we will check how we can do error handling in Lightning Web Components (LWC). For this, we will create a utility method. Check my previous post for how we can share JavaScript code in Lightning Web Components and create a utility method. We will also use the Custom alert notification component to display the…
Share JavaScript Code in Lightning Web Components
Sometimes we need to share JavaScript code in Lightning Web Components (LWC). As code reusability is good feature and we can use same in LWC as well. To share JavaScript code between Lightning Web Components we need to create ES6 module. An ES6 module is a JavaScript file that explicitly exports variables or functions that…
SOQL FIELDS() Function
With Salesforce Spring 21 release, Salesforce has introduced SOQL Fields functions. The FIELDS() function lets us select groups of fields without knowing their names in advance. This function simplifies SELECT statements, avoids the need for multiple API calls, and provides a low-code method to explore the data in the org. This function is available in API version…
Bulk API 2.0 Using Apex and Flow
Bulk API 2.0 Using Apex and Flow, After Winter 21 support of HTTP PATCH request we can use Bulk API in Apex to upload data in bulk.
Avoid Recursive Trigger in Salesforce
Recursive triggers are big trouble for Salesforce developer. We always wanted to avoid recursive trigger in Salesforce. But if we have a big org which have multiple triggers with parent-child updates, include Process builder and Workflow field updates. Then we can easily face the recursive trigger error.So today I will share a few methods using…
Test Salesforce Rest API using Postman
API/Integration is commanly used to connect different Apps. We can Test Salesforce Rest API using Postman. In salesforce we have bunch of Standard API are available. We can also develop our own custom API. But what if we need to give demo to third party so they can consume our API. For this we can…
Share File With Multiple Records
I hope everyone is doing well in this Covid 19 pandemic. We use Files to store large documents in Salesforce. Files have many advantage over attachment which includes large size, ability to share with multiple records etc. and going forward Salesforce is planning to use File instead of Attachment in Lightning.Developer can create ContentDocumentLink record…