Promise in Lightning Web Components is very important. In LWC we call methods Asynchronous. So we don’t have much control in order of execution if we have multiple methods. Prior to promises events, callback functions were used but they had limited functionalities and created unmanageable code. Promises are the ideal choice for handling asynchronous operations…
Category: Lightning
Callout from Lightning web components
Today we will check how we can make Callout from Lightning web components. We have two methods available here. Firstly we can call the Apex and from there we can make SOAP or REST API callout. and Secondly, we can directly make a simple REST call from the Lightning web components’ controller.So today we will…
Salesforce URL Hack in Lightning
URL Hack in Lightning, this is enough to get us excited. With the introduction of Lightning Experience, the most missing feature was URL Hack in Lightning Experience. With Spring 20 this feature has come back officially and with each release, it gets fixes and updates. So today we will cover this and we will check…
Use SoapUI to Test Salesforce WebService
In the SOAP API, Web Services Description Language (WSDL) file is basically used to understand how to use the API. We can use SoapUI to Test Salesforce WebService (Custom and Standard). While Salesforce provided Standard WSDL we can also generate our own custom API. But how we can test them as third party to make…
lightning-record-form Lightning Web Component (LWC)
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…
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…