LWC are custom HTML elements built using HTML and modern JavaScript (Ecma Script) and stylesheets. LWC is built over core Web Standards and Salesforce has used shadow DOM concepts for securing page data. As LWC is built on HTML, there could be session tempering over the internet. We can use Health Checkup for finding inactive session security setting in Salesforce application. Salesforce provided many technique for securing sessions. Let us explore top 5 session setting which can be applied for securing Salesforce application specially for LWC. 1. Require HttpOnly Attribute An HttpOnly Cookie is a optional attribute added to a browser cookie that…
Author: Dhanik Lal Sahni
Serialization is a process of converting an apex object into stream of bytes so that it can be transferred over a network or stored in a salesforce record. Deserialization is the exact opposite – which convert bytes of stream into object. This serialization/deserialization process should be considered properly while implementing. As this is extra layer over object which can add extra time for application load/performance, we should not always consider it blindly. This should only have implemented where it is required. There is other problem with this serialization/deserialization process is, it can insecure for application. See article of OWASP for insecure…
Verified phone is required by many clients for their business use case. Verified phone helps business to give their services to valid customers. Below are some reason where business are going with phone verification Better Service : If phone (mobile) is verified then we can send service messages on mobile. Instead of sending message on fake mobile number it will reach to correct person.Avoid Fake : Fake profile can be created by users. Phone verification will help us to take decision for deleting, deactivating or activating them.Easy Use: SMS/Message are preferred way for notification of any service update. So phone…
Apex code coverage is important when we move code from one Sandbox to other or production environment. In sandbox environment, we can move code without minimum code coverage but for production, we need minimum 75% code coverage for custom apex code. Checking Org’s Apex Code Coverage: We can check code coverage using Apex class screen. Checking Individual Apex Class Code Coverage: We can check individual apex code class coverage from Developer console by running test class. It will give result with code coverage percentage with each class. We can check this report on screen but we can not export or…
A single Salesforce orgs can be utilized by multiple clients. If our clients are calling Salesforce APIs for data upload, data creation etc or we are calling client system to update data, org’s daily API limit consumed. This API limit should not exceed to org’s daily API limit. We should monitor API limit so that our application stay functional. This post will explain about multiple ways to get API consumption limit. 1. System Overview Page System overview page shows usage data and limits for organization and it also displays messages when you reach 95% of your limit (75% of portal…
In some real-time use cases, we need to convert the date time of one time-zone to the date time of another timezone. This post will show how to convert Datetime of one Timezone to Datetime of another Timezone. Apex for converting time in a different timezone This TimeZoneService class will convert datetime of one timezone to another timezone. To convert the timezone, we need the correct TIMEZONESIDKEY. Here is the complete list of supported timezone in salesforce. If we will use an incorrect or not supported timezonesidkey, then we will get GMT timezone information. Let’s use the above service class…
Timezone is very important in some business use case specially for calling to customer, doctors or patients for different needs. Call center agents or user should call these customers on their preferred time and their timezone. By default we can not get timezone based on zip code of customer. We can get these information using API like Smarty Street and zipcodeapi. In this post, I am using zipcodeapi to get Timezone information. We have to create apex class to call this API and we are showing that in LWC component. Based on your requirement, you can use use this information.…
Salesforce Knowledge articles are used for documentation useful information about application process and usage. These articles can be categories using data categories and we can also set keywords for easy searching. To add search keyword for any knowledge articles, we can use Promoted Search Term in Salesforce. This will associate keywords in knowledge article. We can add Promoted Search Term related list in knowledge article page layout. Once we add related list, we can add search term in knowledge articles. As example, we have added four search terms apex, canvas, card and hello in one article. Now, let us see,…
Salesforce Knowledge Articles is a excellent knowledge library to resolve customer issues faster. These articles can be categories based on module, department, city, state, territory or other factors. Salesforce has feature Data Category Setup to categories these articles. We can see in above image, we have SalesforceCodex category group. We can put client name/project name as category group. After this we can have category setup like apex, flow and lightning. We can add child category as well. So based on requirement, we can setup category group, category and child category. Benefit of Data Categories in Knowledge: We can setup separate…
Salesforce Knowledge is excellent knowledge base which help support executive to resolve customer issues faster. We can use this tool by enabling Lightning Knowledge and adding this to case page layout. Standard knowledge component is suffice for most of use cases but some time we have some custom requirement. To handle custom requirement, we have to create our custom Salesforce Knowledge component. Some of the custom requirement could be like Assigning multiple knowledge article in one goShowing knowledge article conditionallyCustom UI like showing them in data tablesAssigning knowledge articles to custom objects Let us now create a custom knowledge component…