Reading CSV/Flat Files

Introduction This article is showing one of the ways to efficiently reading a CSV/Flat Files using Apex code without breaking the character encoding. Read from Content Version Apply character encoding Read data line by line CSV Upload Reusable Pack We have created a re-usable package for handling csv uploads with duplicate checking and reporting errors and also the duplicates found. You can learn or explore the package at below url: Use Case This customization can Read more…

Setting up Salesforce DX

Introduction Salesforce DX is changing the way developers used to code and making it better in terms of team collaboration, source driven development and faster testing and deployments. There are multiple development models in Salesforce namely change set, Package, App and Org development model. Lets see the new App and Org development models in detail: Org Development Model Setup tools: Salesforce CLI VSCode (Install Salesforce CLI, Package Manager) Gitlab Account (Gitbash) OpenSSH Gitlab setup: Create Read more…

Stateful Apex Batch Classes

Introduction This article intents to show how we can save state of batch class member variables for all serial batch jobs running in background for a single batch job. Use Cases When you want to report the batch execution status. Calculate records failed/passed on some criteria. See most common error occurred while batch run etc. Example Lets take a simple example for sending email with all errors occurred when a batch job is finished execution.

Using Salesforce Einstein Vision API

Introduction In this tutorial we will get to know how can we use Einstein Vision API from Apex Classes i.e. creating the data sets, training data sets and the getting predictions based on the data set. Below are the prerequisite to be done before starting the tutorial: Navigate to singup page at https://api.einstein.ai/signup Upload the einstein_platform.pem file in Salesforce documents. Add https://api.einstein.ai/ and https://api.metamind.io/ to Remote Site in Salesforce. Download the JWT and JWTBearer classes to be used from Read more…