Create Record Through LWC

Hi Friends . This is my first post on LWC. So today we will discuss 2 different way of creating record through LWC. 1.Creating Form and Save Controller . template.html <template> <lightning-card title="Create Account" icon-name="standard:account"> <div class="slds-p-around_x-small"> <div class="slds-p-around_medium lwc-bg"> <lightning-input type="text" label="Name" value={rec.Name} onchange={handleNameChange} required></lightning-input> </div> <div class="slds-p-around_medium lwc-bg"> <template if:true={TypePicklistValues.data}> <lightning-combobox name="progress" label="Type" … Continue reading Create Record Through LWC

Custom Roll up With Apex Trigger.

Sometimes we have Requirement to have a number of Counts of Contact on Account, just like Rollup Field Salesforce. But Salesforce has provided Rollup Summary Field on the Master-Detail Object. Below is Sample code for the Same. Apex Trigger : trigger trgContactTrigger on Contact (before insert, after insert, before update,after update,after Delete) { ContactTriggerHandler objClass … Continue reading Custom Roll up With Apex Trigger.

How to use Custom Label in Process Builder?

Custom labels are custom text values that can be accessed from Apex, Visual Workflow, Process Builder, and so on. The values can be translated into any language that Salesforce supports. You can create up to 5,000 custom labels in an organization, and they can be up to 1,000 characters in length. If we talk about Best Practices Salesforce never Supports Hard Coded IDs. So at that point of Time … Continue reading How to use Custom Label in Process Builder?

How to Resolve Iframe Scroll issue for PDF in Lightning for IPAD in Salesforce 1?

So I had one of the Requirements where I had to generate PDF through VF page and Open that on Click of Quick action. But I was facing an issue that scroll for the PDF was not Working. My PDF had 4 pages and In case of IPAD, the scroll was not working. After trying … Continue reading How to Resolve Iframe Scroll issue for PDF in Lightning for IPAD in Salesforce 1?