Posts

Showing posts from 2020

Send Custom Notification using Lightning Flow

Image
As we know that custom notification can be send using process builder. Process builder will not work in below cases. To send a notification to admin about the batch class completion without sending e-mail To build some complex notification delivery using trigger. To send notification when APEX API is successfully executed. We will build the use case to send notification to the Submitter when the batch job is complete Step 1: Create a Auto Launch flow from flow builder and drag the action on the canvas. Step 2: Configure the action by choosing the Notification Category as mentioned in below screenshot. Step 3: Configure the input variables for each required value. Make sure that for the Recipient Id the variable type should of string collection. Step 4: Create a Batch Class as below to send notification once batch class is successfully completed. public with sharing class BatchLeadConvert implements Database . Batchable &

Multi Select Look Up Using LWC

Image
This blog will explain how to create Multi Select Look Up Component in LWC. This LWC component will work for below use cases. 1. When you have to build use case where user can select multiple values by searching in input field.(Multi look up). 2. When you have to build a use case where you have to select single value by searching (Single Select Look Up) 3. When you have to use a look up functionality by using extra filter criteria. MultiSelectLookup.html <template> <lightning-card> <div> <div class = "slds-form-element" > <div class = "slds-form-element__control" > <div class = "slds-combobox_container" > <div class = {dynamiClassname} data-id = "resultBox" aria-expanded = "false" aria-haspopup = "listbox" role = "combobox" > <