Salesforcelwc.in | Learn salesforce lightning web components
261 FOLLOWERS
SalesforceLWC is a platform where you can learn salesforce | Aura components | Lightning web components | Apex
Salesforcelwc.in | Learn salesforce lightning web components
3y ago
Customizable email component.
Features
Allows you to fetch emails from Contact and User objects, can be extended for any custom object
Allows you to enter static emails
Contains validations on To and Cc address to allow only valid emails (only checks for format)
Allows user to upload and attach files
Contains re-usable input component. (to add Bcc etc.)
Images
Code emailLwc.html
<template>
<article class="slds-card">
<!-- Alert -->
<div if:true={noEmailError} class="slds-notify slds-notify_alert slds-alert_error" role="alert">
<sp ..read more
Salesforcelwc.in | Learn salesforce lightning web components
3y ago
Hi guys, today we are going to create a custom look-up component using Lightning Web Components. Lightning Web Components is a new framework created by Salesforce, a customer relationship management software. We can leverage modern and standard features. As LWC is new and not completely mature everything is not available out of the box, we need to build some things on our own to meet the requirements.
Look up
Final Outcome would be
Usage
Look up
Look-up Component is one of that. As a Salesforce crm developer, we are well aware that there is no base component provided by salesforce either in ..read more
Salesforcelwc.in | Learn salesforce lightning web components
4y ago
Expressions help us to conditionally render/display elements in markup
Expressions in Aura
<aura:if isTrue="{! (!v.attribute ? ifYes : ifFalse) }">
<div>Conditional displayed elements/text</div>
</aura:if>
In Aura we can write expression as seen above, where as in lwc something like this is not possible to directly write in markup. We need write expressions in JavaScript and use their result in markup.
Expressions in LWC
<template>
<div if:true={expression}>elements</div>
</template>
import { LightningElement } from 'lwc';
export ..read more
Salesforcelwc.in | Learn salesforce lightning web components
4y ago
Now we can customize CSS for standard lightning base components using styling hooks.
What are Styling Hooks
Styling hooks use CSS custom properties which make it easy to customize component styling. We can use CSS Custom Properties as hooks to customize the SLDS component with your style.
Where can I find Styling Hooks?
You can find styling hooks for base lightning components on the SLDS website. For example to find styling hooks for lightning-button base components navigate to Lightning Component Library and in the documentation section, you can find “Customize Component Styling” here you wil ..read more
Salesforcelwc.in | Learn salesforce lightning web components
4y ago
Retrieve Data
There are 3 ways we can retrieve bulk data in Lightning.
VF remoting with @readonly annotation (nearly 1 million records)
VF remoting with @readonly annotation (multiple small chunks)
Lightning controller (multiple small chunks)
we can retrieve data using any of the above 3 ways.
Salesforce says, Image
VF remoting with @readonly annotation (nearly 1 million records)
We can query nearly 1 million records (Salesforce says unlimited records) by annotation an apex method with @readyonly. However, there are certain limitations. @readonly annotation in this context can only be called ..read more
Salesforcelwc.in | Learn salesforce lightning web components
5y ago
Hi Guys, I have done a lot of research and came up with an efficient solution for deploying open-source Lightning Web Components to Github Pages or any website/server of your choice. This tutorial directly refers to deploying LWC open source to Github Pages, but deploying to other sources is almost same as this. I suggest you follow this as I have gone through all the trouble and you don’t have to go through all that trouble I have gone through. In this tutorial, I will walk you through deploying LWC OSS to Github Pages.
Prerequisites
GitHub Account.
Install Git in your machine and ..read more
Salesforcelwc.in | Learn salesforce lightning web components
5y ago
Almost anything can be achieved using Lightning Flow Builder like creating the records, updating the records, sending an e-mail, invoke the approval process, call apex class, display and interact with lightning components and even call an External system and whatnot. It would be very un-cool if we as Salesforce Developer/Admin don’t utilize such a great tool to the depths. In this article, we will get some knowledge about how to use Lightning Web Components in Lightning Flow Builder to build better looking and un-conventional flow components.
Preview
What is Lightning Flow Builder
If you ar ..read more
Salesforcelwc.in | Learn salesforce lightning web components
5y ago
Let’s create a flow to update and view a Contact record
Preview
Flow Elements Required
Get Records Element
Screen Element
Update Records Element
Flow Variables Required
recordId (Text)
accountLookupId (Text)
varContactRecordValues (Record)
recordId (Text)
accountLookupId (Text)
varContactRecordValues (Record)
All Resources Used
Get Records Element
Get Records Element is used to find and get the records from the Salesforce database. In this case, we will use Get Records Element to get the record using record Id, for this, we need to create a variable named “recordId” an ..read more
Salesforcelwc.in | Learn salesforce lightning web components
5y ago
WorkFlow
Workflow Rule is a basic automation tool provided by Salesforce to achieve automation of repetitive manual tasks without any code and just by simple clicks. Workflow rule is one of the old automation tools, as a best practice Salesforce always recommends to go with Workflow rule first unless your requirement contains something that cannot be achieved using Workflow Rule.
Workflow lets you automate standard internal procedures and processes to save time. A workflow rule is the main container for a set of workflow instructions. These instructions can always be summed up in an if/then s ..read more
Salesforcelwc.in | Learn salesforce lightning web components
5y ago
Bluehost is a leading web hosting provider used by millions of users worldwide. Over 2 million websites worldwide are powered by Bluehost.
Bluehost provides
Free Domain for the 1st year
Free SSL Certificate
24/7 support
30 day money back guarantee
Bluehost provides a service called Blue Flash, where you get expert guidance from Wordpess experts to set up your blog. They help you select the right theme and plugins which suits your website needs. You will get a chance to learn and move forward in the right track. It is always important to be in the right track in the online world, els ..read more