Single Sign-On is authentication mechanism that enable users to securely authenticate with multiple applications and websites by using one set of credentials. SSO works based upon a trust relationship set up between an application, known as the service provider (in this case Salesforce system), and an identity provider, like Salesforce, Gmail, Microsoft etc. Identity Providers: An identity provider (abbreviated IdP or IDP) is a system entity that creates, maintains, and manages identity information for principals and also provides authentication services to relying applications within a federation or distributed network. Identity providers offer user authentication as a service. In our use case, Salesforce will be used as…
Author: Dhanik Lal Sahni
lightning-dual-listbox is used to show two side-by-side listboxes. This component can be used to show list of available options and selected options. Recently my team got requirement where selected options should not be removed but we can select new options. Ex.. If user already selected Option1, Option2 then they should not remove these options but they add and remove other options like option3, option4. Let us see how we can accomplish this in lightning web component. We can use onchange event to set default values if those values are de-selected. value property will show selected values. We will set this…
Recently I got requirement from one of our group member, to create dynamic configurable table creation for creating new record in Salesforce objects. Use Case: Create a configurable table for adding/deleting new rows in lightning data table. Types of fields will be configurable while adding new rows. On submit save record in multiple Salesforce objects. Solutions: There could be two below solutions for this use case This post will solve our use case using solution approach#1. 1. Create a new dynamic lightning web component We can create one lightning web component which will handle table creation based on configured columns…
Platform events enable application to deliver secure, scalable, and customizable event notifications within the Salesforce platform or from external source. In this post we will publish platform events from ASP.NET application and subscribe using Flow, Apex trigger and Lightning component. Use Case: Let us take example, one e-commerce application is built in ASP.NET application and when order is generated by customer. That order information should be shared by various system/module like warehouse system, shipping system, vendor/partner system, billing system and CRM system. Salesforce will subscribe that event and get all order information. Below steps are required for this use case…
Some time we need to open utility bar when lightning app is loaded. This is required when we want to run some background job like update user record or initialize user session when page is loaded. Use Case: SalesforceCodex.com is running multi program health system built on Salesforce Platform. Business want when user will open lightning app they will get program selection screen. Solution: To handle this business requirement, we can use lightning utility bar. We can put lightning component in utility bar. When lightning app will be loaded that lightning component will open automatically. We have to check flag…
Most of the time we have a requirement to store files in other cloud storage services like AWS, Microsoft One Drive, Dropbox, Google Drive, etc. This depends on clients’ requirements and probably license availability as well. Might be client has already these file server licenses so they will go with storing the file there itself. Salesforce support integration with the above-mentioned file storage servers. This post is for integrating Salesforce with Microsoft One Drive to store files. We can do Microsoft One Drive integration using two ways Salesforce Files Connect REST API Integration In this post, we will do integration using…
A lightning-datatable component displays tabular data based on data rows and columns provided. We required this component on many pages in the project.Instead of putting this component on every page. We can create a reusable and configurable data table component. This blog will create a generic data table component that has a below configurable setting. It will populate data based on below requirement It will have a configuration setting for enabling features like Let us create a generic component based on the above requirement. We will go to each requirement step by step. First, let us handle the requirement to…
Lightning-datatable element is used to show records as tabular format in lighting web component. By default lightning-datatable support multiple row selection. Recently one of my colleague asked how we can restrict single row selection in lightning-datatable with checkbox not with radio button. lighting-datatable has property max-row-selection will restrict maximum number of records can be selected. If we set 1 as value then instead of checkbox it will be show radio. This blog will just restrict single row selection with checkbox in lightning-datatable. Let us handle this use case to restrict lightning-datatable to support single row selection. Here is code to…
Object Detection is used to locate the presence of objects in the image. We can find the location of the object as well in the image. It can detect a single object as well as multiple objects in the image. As an example in the above image, we can get the number of objects in the picture, the classification of the object (cat, dog, duck), and the location of the object. Lots of APIs are available for object detection. Here is a list of those top APIs This post is using Google Cloud Vision API to detect objects in the…
Images are best to showcase products or brands on websites. These images can be divided into multiple sections to show specific products or brand information. We can use HTML image maps to create clickable areas on an image. Image maps are used hyperlink parts of an image to a different destination. HTML Elements Used to Create Image Maps There are three HTML elements used to create image maps: img: specifies the product or brand image. usemap attribute is required for map creation.map: is used to create a map of clickable image areas.area: is used within the map element to define the…