Schedule email alert based on business hour is one of important requirement. This post will give step by step information to schedule email alert in Salesforce.
Author: Dhanik Lal Sahni
Einstein Vision API help to extract text from different image format. This post will help in extracting driver license detail from Image using Einstein API.
AWS S3 is used to store salesforce files. This post will give detailed information about downloading S3 File using AWS Signature Version 4.0
We mostly have requirements to upload files in file storage servers like AWS S3 Server, Dropbox, Google Drive, etc. This post will help in uploading files to S3 Server. We will use named credential to upload file in S3 server. Steps for uploading file in S3 Server using named credential Create a named credential for AWS CredentialCreate an apex class to upload fileTest functionality 1. Create a named credential for AWS Credential Create a named credential with Authentication Protocol as AWS Signature Version 4. AWS Signature Version 4 (SigV4) is the process to add authentication information to AWS API requests…
Integration with external system is very common requirement in Salesforce application. For this we can go for declarative external service or create apex class for each type of integration. Declarative External Service can only work when OpenAPI schema is available so for other cases we have to go for apex class. In this post we will create a generic apex class for calling external system which can used with named credential also. For creating generic class we have to add feature to get different parameters like header parameter, request parameters, endpoint urls, named credential information etc. We will also add…
Sending Email Template as attachement is one of the basic requirement in Salesforce. This blog will give steps for sending Email Template as Email Attachement.
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…
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…
Many clients require verified phones for their business use cases. Verified phone helps business to give their services to valid customers. Below are some reasons why Phone verification in Salesforce is required by businesses In Salesforce we can easily validate mobile/phone number using regular expression but system will not help in verification of phone number. There are many API/products available for phone verification. Here are some API which can do phone verification I am using Veriphone for verifying phone in this post but we can use any one based on license availability. Use Case: Account object is storing customer information.…
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…