Increase your Debugging Skills – Salesforce Apex Debug Logs

Debugging Apex in Salesforce Apex logs can be difficult. If you have downloaded an apex log and tried to find the issue it can be a big chore. With Visual Studio Code and the Apex Replay Debugger extension debugging has become much easier. This article won’t be going through Apex Replay Debugger as trailhead has […]

How to Split a List in Apex without using a For Loop

The List class in APEX does not have a native method to split a list, such as a java subList or Javascript slice. The brute force way would be to loop through the list and either remove the records that are not wanted or create a new list and add the values to the list. […]

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 […]