Author: Dhanik Lal Sahni

Nowadays we have lot of request for customer service automation. Salesforce chat bots is one of example. Similar to that we have Text-To-Speech feature to enhance customer self‑service application with high‑quality audio.  Let us see how we can implement Text-to-Speech in lightning component. We have Web Speech API to enable Text-To-Speech in our application. Web Speech API enable application to handle voice data. There are two components to this API: Speech synthesis SpeechSynthesis interface, a text-to-speech component that allows programs to read out their text content. SpeechRecognition interface, which provides the ability to recognize voice context from an audio input and respond appropriately. This blog is…

Read More

Lightning community is being used to create awesome portal. We can showcase company’s products on community portal. To showcasing our product, zooming is one of good feature.  Let us see how can we create zoom-able image lightning component. Steps to create Zoom-able lightning component. Add external fie as static resource Create Lightning component Use created lightning component Let us explore these steps in detail Add external JS fie as static resource          Download required external files from github account and upload them as static resource.2.  Creating Lightning Component Create lightning component to make product’s image zoomable.  Zoomable.cmp <aura:component>…

Read More

Call Lightning Component using Formula Link Many time we have use case where we need to call Lightning Component from record’s detail page. To accomplish this requirement we can use formula field which will create hyperlink. This feature is introduced in Summer 18 and it can call aura component using lightning:isUrlAddressable. Let us see this complete feature implementation. Below are steps for this Create hyperlink using formula field Create Lighting component to read parameter’s value Create hyperlink using formula field Create a formula field on Account to launch Lightning Component and read its parameter. We have to put c__ before every parameter…

Read More

Send Email Using Email Template and Apex Sending Email is one of some important task in salesforce application like sending any report, send task information etc. We have below options to send email in salesforce. Use Email Template and SingleEmailMessage class Create VF Page and Send it using Apex Let us see first approach in this post. For sending email with attachment below steps are required Create Email Template Send Email using Apex Create Lightning Action component Create Lightning Action on Object Add button on Page layout We can send any report as attachment also. Let us see step by…

Read More

New WITH SECURITY_ENFORCED clause handle checking for field- and object-level security permissions on SOQL SELECT queries, including subqueries and cross-object relationships. Although performing these checks was possible in earlier releases, this clause substantially reduces the verbosity and technical complexity in query operations. This feature is tailored to Apex developers who have minimal development experience with security and to applications where graceful degradation on permissions errors isn’t required. To use, just add the WITH SECURITY_ENFORCED clause in SOQL SELECT queries. If there are any fields or objects referenced in the SELECT clause that are inaccessible to the user, an exception is thrown and no data is returned. Example 1 If…

Read More

Salesforce introduced a ton of great feature enhancements. Let’s take a look at some of the more important ones for this release. Build Flows More Intuitively with Flow Builder Cloud Flow Designer with a much faster tool: Flow Builder. It streamlines flow building and maintenance with a simplified user interface. With Flow Builder, we streamlined the toolbox, so it’s easier to choose the right element or resource for your flow. For example, we consolidated the data elements and how you create variables. No more keeping track of whether to use a Fast Create or Record Create, or which type of…

Read More

Lightning Web Component is new Salesforce development framework which is based on current Web Standards. We can utilize all features of web standards in our lightning web component. In this blog we will cover one of requirement which is very basic for all lightning community. Use Case / Requirement We have requirement that, We need to show current user detail on Portal Header. This current user detail can be accessed by other component as well for referring current user information. Solution As we need to show user detail on other components, so we can create global module or class inheritance.…

Read More

Developers mostly confused about Permission Sets and Profiles. Let us see facts about permission sets. Permission Sets and Profile can be used together.​ Profile should be used to provide bare minimum permissions and then additional permission can be given using permission sets.​ Permission Sets can only be used to grant but cannot deny.​ One user can be part of only one profile at a point of time but a user can be part of many permission sets.​ An org can have upto 1000 Permission Sets.​ Permission Sets need not be associated with license types.​ Permission Sets can be used for…

Read More

Salesforce have a new technology. Lightning Components look like they’re on the way out, and are being replaced with a new technology ‘Lightning Web Components’. Let us see what is building block of this technology. As name suggests this is web component so most of thing taken from those stacks. Import Statement Import is a new addition to Javascript that natively allows us to define the relationships between javascript files within javascript, rather than at the HTML level. This replaces the use of most ‘script’ tags in traditional Javascript development. For Lightning Web Components, this is used for static resources…

Read More

Salesforce announced Lightning Web Components on 13-Dec-2018. This is New programming model for building Lightning components. It’s not built on top of Aura framework. It’s a different framework which will co-exist with Lightning Components. Think Lightning Web Component model as an abstraction over the Web Components. Web components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML tags to use in web pages and web apps. Custom components and widgets build on the Web Component standards, will work across modern browsers, and can be used with any JavaScript library or framework that…

Read More