Creating CSV files in Salesforce from Apex

Whether looking through Developer Console or wanting a process/trigger to create a file here are a few quick methods that can be used to create a CSV or generic file from Apex. This is to show a few quick methods that can be used to create a CSV from Apex however they could be modified […]

Convert a Set Id to Set String in Apex

In apex, the Id is a primitive data type that maintains the data integrity of the data type by only allowing only Ids(or Strings with Id patterns). If you would like to test it out, put the following into anonymous apex and execute: You receive an error with the following StringException: Invalid id: 001aaaaaaaaaaaa. To […]

How to get a Custom Metadata Record without using a SOQL Query

Custom Metadata can be used for a variety of reasons one of which is allowing the ability to create a framework from deployable records (custom metadata) instead of data. They can be referenced in formulas, flows, and APEX. If you are not familiar take a look at the Custom Metadata Type Basics and Programmable Development […]

Benefits of Creating a Custom Salesforce Change Data Capture Channel

Salesforce Change Data Capture is very useful in being able to capture and replicate changes that occur with a record. Each change creates a CDC event message. The message can either be one or multiple record changes with a given transaction creating multiple changes. This article assumes you know a little bit about Salesforce change […]

Salesforce Migration Strategy/Planning

Creating a migration strategy at first can seem like a very simple task. All you do is take data from one database and put it into another. However it can become much more complex. When assessing your strategy for loading data into Salesforce there are a few things to consider: The Salesforce Data Model The […]

Close All Salesforce Console Tabs when Logging in

The great thing about console apps is the ability to have multiple tabs open at once. This is important for many reasons, one of them being CTI. As great as they are those tabs can very quickly pile up and a user can have a large amount of tabs open at once. While you are […]

Creating a Living Data Dictionary in Salesforce

A data dictionary is a list/document used to describe a system and the fields and attributes associated to the system. A lot of times this can be an excel spreadsheet or a word document to describe the system, the fields, the attributes associated to the fields, etc. A Salesforce data dictionary is a very important […]

Deploying a Specific Salesforce API Version using Visual Studio Code

If you are using Visual Studio Code to deploy to Salesforce and come across an API Version specific error such as ‘Property ‘componentInstances’ not valid in version …‘ there are several options to try: 1. Change the Package.xml version When deploying through the package.xml try changing the version(<version>xx.0</version>) to the specific version you need. Then deploy and see if that […]