lightning-record-form is a Lightning Web Component (LWC) alternative of apex:detail tag. Lightning-record-form allow us to create forms to add, view, or update a record. This component provide us these features: Switches between View and Edit mode when use start editing form in view mode Provide standard Save, Cancel options without any custom code Use the…
lightning-record-edit-form: Prepopulate Fields
lightning-record-edit-form is a Standard controller replacement in Lightning Web Components. We can do all things which is possible using StandardController with lightning-record-edit-form. In LWC we also have JS controller that gives us extra functionality which we can add in our component.But what are the benefits of using lightning-record-edit-form. Some of the main feature are: We…
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…
Setup ANT and Clone Change Set
ANT is a very useful tool in Salesforce. We are using it for very long time to do the migration and take backups. Deployment using change set is a time consuming task, sometimes we need to wait long time before they get available in target org. And if any error occurs then we need to…
Enforce Security With the stripInaccessible Method
Enforce Security With the stripInaccessible Method. This is again one of the gem of Spring 20. We now have stripInaccessible method available which we can use to check current user’s create, read, update, or upsert access permission. Previously to do this we need to use sObject Describe ObjectResult and FieldResult to check each permission for…
Corona Live Tracker Using LWC
Today everyone is worried about Corona(covid 19). I hope you all are doing well. There are many live tracker available for Corona. As a developer it make me curious and I started looking for API which are used by other portal so that I can use the same and can create the tracker, I found…
Clone Record in Bulk Using Flow
Flow is something which I mostly ignored till now, recently I created few flow in my project and found them very interesting and easy to develop to handle even complex functionality. So I thought to try my hands on Flow to develop some simple components which will be helpful in daily use.One of such requirement…
Default Field Values using Lightning Web Components
With Spring 20 release Salesforce announces many new features and one of them is Prepopulate/Default Field Values using Lightning Web Components or URL hack in Lightning Experience. If you haven’t read the spring 20 release notes, you can take a quick look here.So today we will check how we can use it to set Default…
Close Quick Action from Lightning Web Components
Lightning Web Components are not supported in Quick Action. But we can encapsulate them in lightning components to overcome this. But the issue comes if we want to close Quick Action Modal from Lightning Web Components (LWC). As we don’t have native support here so we will use a quick hack here. Today we will…