Alerts in LWC (Lightning Web Component)
Niks Developer » Salesforce
by Nikhil Palekar
1y ago
This post will walk you through the implementation of using alerts in LWC (Lightning Web Component) using LightningAlert adapter of lightning/alert. We can use alerts in LWC instead of the native and old fashioned window.alert() for a more consistent user experience. It has similar functionalities, but this works in cross-origin iframes, where the alert() method is no longer supported in most browsers. Let’s directly get into the implementation. Implementation Create a Lightning Web Component named alertsLwc. First, simply add a button in the component that will call the Javascript method. Thi ..read more
Visit website
Google Docs in Salesforce
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
This post will walk you through the implementation to attach Google Docs in Salesforce with an example. Usually, we can assign most of the files on the record in the Files or in the Notes and Attachment section. But sometimes, we might need to attach the Google Documents in Salesforce on the particular records. If that is the case, you are at the right place. Let’s get into the implementation. Activate Google Apps First, we need to activate Google Apps in Salesforce. Go to Setup, type Google Apps and click on Google Apps Settings under the Google Apps menu. If you do not have the Google Apps e ..read more
Visit website
Scoping Rules in Salesforce with Example
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
This post will walk you through the implementation of using Scoping Rules in Salesforce with an example. Scoping Rules in Salesforce are used to control the default records that our users see based on the criteria we select. We can set up the Scoping Rules for different users in your Salesforce org so that the users can focus on the records that matter to them the most. When should we use Scoping Rules in Salesforce? We should use Scoping Rules in Salesforce to control the records that your users see by default. But note that, Scoping Rules do not restrict the user’s access to other records th ..read more
Visit website
Restriction Rules in Salesforce
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
This post will walk you through the implementation of Restriction Rules in Salesforce. This is a newly added feature in Salesforce. Certainly one of the most straightforward yet most efficient and most needed functionality is finally at our hands. Let’s see what Restriction Rules are all about and then the implementation of it. What is a Restriction Rule? Restriction Rules let us enhance the security by allowing certain users or users with specific permissions to access only specified records. It is mainly used to prevent users from accessing sensitive data or information. When should we use R ..read more
Visit website
Alternate Table Row Color in Visualforce and PDF
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
In this post, we will implement the functionality to apply CSS to apply alternate table row color in the Visualforce page and PDF. We can use different approaches in Visualforce and PDF to apply alternate row color in the Visualforce page and PDF tables. One of them only works in Visualforce while the other one will work in both Visualforce and PDF. We will implement both. Let’s get into implementation. Implementation We will first create a simple Apex Class to return the list of Account records. We will use these records to display them as a row on a Visualforce page using the table. This is ..read more
Visit website
Google Recaptcha in Salesforce Visualforce with 3 Lines of Code
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
This post will walk you through the implementation to use Google Recaptcha in Salesforce Visualforce with just 3 lines of code. Sometimes, we need to expose some Visualforce pages to public users using Sites to get some user inputs. As the Site is public and anybody can access it, we must add some kind of validation to avoid the DOS (Denial of Service) attack. That’s where Google Recaptcha in Salesforce Visualforce comes in handy. Google Recaptcha in Salesforce Visualforce Implementation First, we need to create Google Recaptcha Account. Click the below link to create an Account: Create Google ..read more
Visit website
Generate PDF using LWC from Quick Action
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
This post will walk you through the implementation to generate PDF using LWC from Quick Action. Generating PDF in Salesforce using Lightning Web Components or Aura components is a very common use case. Although we can generate PDF using LWC as well as the Aura component, we need to make use of the intermediate Visualforce page. This Visualforce page will be used to show and format the content of the PDF. LWC will be used to create a headless quick action that will generate a PDF using the Visualforce page. Let’s get into the implementation. Generate PDF using LWC In this implementation, we wil ..read more
Visit website
Quick Action without Modal in LWC – Headless Quick Action
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
Recently Salesforce has introduced a way to create Quick Action without Modal in LWC (Lightning Web Component), which is called the Headless Quick action in LWC. Sometimes we need to perform an action using the Quick Action without showing the screen. Sometimes the logic has to run in the backend. Headless Quick Action will help to achieve exactly that. Let’s hop into the implementation. Headless Quick Action in LWC In this implementation, we will create a Headless Quick Action in LWC to perform some logic. We can write any logic after clicking a button. But for this demonstration, we will jus ..read more
Visit website
Filter Dashboard from URL Parameters
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
In this implementation, we will implement the functionality to filter Dashboard from URL Parameters. Sometimes we need to open the Dashboard by clicking on a button and filter the Dashboard with predefined parameters. This post will help to filter the dashboard using the URL parameters. This feature is the new feature introduced in Spring ’21 Release. Let’s hop into the implementation. Implementation In this implementation, we will create a Dashboard and then filter the dashboard with the URL parameters. Create any report and add it in Dashboard. I have created a report to display Accounts and ..read more
Visit website
Multi-select Picklist in LWC using lightning-dual-listbox
Niks Developer » Salesforce
by Nikhil Palekar
2y ago
In this post, we will implement the functionality to use a multi-select picklist in LWC (Lightning Web Component) using lightning-dual-listbox. As part of this demonstration, I have created Language__c multi-select picklist on the Account object. We will use this multi-select picklist in LWC using lightning-dual-listbox. Let’s hop into the implementation. Implementation To use a multi-select picklist in LWC, we need to use the standard lightning web component lightning-dual-listbox. First, create Lightning Web Component and import the getPicklistValues and getObjectInfo from lightning/uiO ..read more
Visit website

Follow Niks Developer » Salesforce on FeedSpot

Continue with Google
Continue with Apple
OR