Posts

Salesforce LWC : Compact Layout on Hover

Image
Salesforce LWC : Compact Layout showing on Hover Sometime we have requirement to show Account name link on standard views, a popup with the Compact Layout shows the details of that record. LWC Parent Component : Template (HTML Code) LWC : JS (Process Code) import { LightningElement,api } from 'lwc'; export default class AccountComponent extends LightningElement { @api recordId; @track objRecordId; handleMouseover(event) { console.log(this.recordId); this.objRecordId = null const toolTipDiv = this.template.querySelector('div.ModelTooltip'); toolTipDiv.style.opacity = 1; toolTipDiv.style.display = "block"; // eslint-disable-next-line window.clearTimeout(this.delayTimeout); // esli...

Salesforce LWC With Third Party JS : D3

Image
Salesforce Lightning Web Component With Third Party JS : D3 Third-Party JavaScript Libraries Using JavaScript to manipulate the DOM isn’t recommended because the Lightning Web Components engine does it more efficiently. However, there are some third-party JavaScript libraries that take over the DOM. Manipulate the DOM with JavaScript Using JavaScript to manipulate the DOM isn’t recommended because the Lightning Web Components engine does it more efficiently. However, there are some third-party JavaScript libraries that take over the DOM. If a call to appendChild() manipulates the DOM, styling isn’t applied to the appended element. When using these libraries in a Lightning web component, add lwc:dom="manual" to any HTML element that you want to manipulate with JavaScript. When the engine sees the directive, it preserves encapsulation. Add the lwc:dom="manual" directive to an empty native HTML element. The owner of the component calls appendChild()...

Salesforce : Certification Tip for Online Protected With Coupons/Vouchers

Image
Salesforce : Certification Tip for Online Protected What is an Online Proctored Exam? Salesforce certification exams can be taken remotely, from your own computer, at the comfort of your home. online proctored exam for online proctored is very convenience, flexibility in schedule, and no travel requirements .  Online Proctored Exam Requirements The online proctored exams are taken via Kryterion Sentinel Secure software . Those taking the tests must download the software and create a biometric profile. You must verify your identity before your exam schedule. Review all the requirements before taking an exam to ensure a successful attempt. Any rule violation could be grounds to discontinue your online proctored exam. To guarantee secure examination conditions, your testing area must meet these requirements : 1. Area must be quiet and clear with good amount of visibility for WebCam. 2. Usually, an online proctored exam requires two cam external cameras and built in w...

Salesforce Configuration from Custom Metadata Types

Image
Salesforce Configuration from Custom Metadata Types Custom Metadata Types are a very powerful capability in the Salesforce platform it can in process builder, formulas, and validation rules. I wanted to give some background and examples to help admins understand how it could be used in their orgs. The main advantage to using the custom metadata types is you can add both definition and records in the package or changeset. Advantages to Custom Metadata: 1. You can control the visibility of Custom Metadata Types by specifying it as public or protected. 2. We can create fields like Picklist fields, long text areas also able to do with page layouts, and validation rules. 3. Asynchronous (without using remote site settings) insert/update in Apex via Metadata.MetadataOperations.enqueueDeployment() 4. Custom Metadata have a option for access for edit the records with “Configure Application” but you require “Author Apex” to edit the configuration. 5. Custom metadata is also visi...

Quick Complete Guide : VS Code Extensions

Image
My VS Code Extensions : For Salesforce 1. Quick Metadata Backup (SFMDB) VS Code Extension for Metadata Backup with Single Command in VS Code Command Palette. you can download from Microsoft Marketplace : https://marketplace.visualstudio.com/items?itemName=SanjayRathore.quick-salesforce-metadata-backup 2. Quick Salesforce Apex Class (SFAC) VS Code Extension for Salesforce Apex Classes with Single Command in VS Code Command Palette. you can download from Microsoft Marketplace : https://marketplace.visualstudio.com/items?itemName=SanjayRathore.quick-salesforce-apex-class What are extensions? It's not a secret that VS Code is becoming a very popular choice as editor for many developers.VS Code extensions are awesome, they provide amazing convenience that is limited only by your imagination. One of the most impressive parts of Visual Studio Code is customizability, especially via extensions. If you're a web developer, you won't be able to live w...

Salesforce Trigger with Http Callout

Image
Salesforce Trigger with Http Callout This blog will provide the information to implementation HTTP Callout from Trigger. Salesforce has two ways to execute a callout from a trigger is to run it asynchronously. There are following : From @future method : Use when only single callout in Trigger From Queueable Interface Class : Use when need multiple callout in Trigger Let’s do implement and enjoy this magic!! From @future method Future methods execute asynchronously.Future Apex is used to run processes in a separate thread, at a later time when system resources become available. Some important point for future method Method should be return void type. Method should be static. Method support only primitive data types. Method support callout with allow callout.(Default is callout = false). trigger AccountTrigger on Account (after insert,after update) { if(Trigger.isAfter){ for(Account acc: Trigger.New){ if(!System.isFuture() && !...

Salesforce Integration With Google

Image
Salesforce Integration With Google This blog will provide the information to integrate Google drive with the simplest way without any complex apex code We have used Auth. Provider and Named credentials to handle authentication for Google Account. That's store the ‘Google Secret ID’ and ‘Google Client ID’ and Named Credential utilizes the Auth. Provider while making callout in custom Apex code. Advantage using Auth. Provider and Named Credential is that we do not need to handle authentication each and every time we make callout. Authentication will be done once we create the Named Credential associated with the Auth. Provider. Let’s do implement and enjoy this magic!! Step to Implements for whole Process Creating a Google Project for App Config Login into the google account for integrate with salesforce Navigate to https://console.developers.google.com/projectselector/apis/library?supportedpurview=project From the project drop-down create a Create a new project....