Handsome Guy
Author:

Bruce Tollefson

Currently working on my path to Certified Technical Architect. I am 14x certified, looking to use my knowledge and expertise in order to help teach others about Salesforce.

Filter on Debug Only in Visual Studio Code

When trying to debug within Developer Console you have the ability to filter the log to just show the debug statements that were placed in the code. This can be very helpful when trying to quickly diagnose why an error is occurring and is something used regularly. Unfortunately when trying to read a log in […]

Salesforce Lightning Out

Salesforce lightning out provides the ability to run lightning web components or aura components on an external website / web app. The process is pretty simple however became frustrating as well, which I will point out why. There are a couple of steps and requirements in order to make this work: Create Your Component Create […]

What does Bulkify Mean?

Within Salesforce you have a bunch of governor transaction limits. These limits are are there for each transaction as a way to make sure one org is not able to use more resources than estimated / allotted for and slow down the whole tenant. That is where bulkifying comes in. This term is used to […]

What is an Apex Transaction

In Salesforce an Apex transaction refers to the entirety of operations that are executed within a transaction boundary. The transaction boundary refers to everything that occurs within that transaction. In other words the Apex transactions is all the related code that fires due to something happening within the org. As an example let’s say you […]

What is Metadata

Metadata is ‘data about other data’. In the terms of Salesforce metadata is your Objects, Fields, Page Layouts, etc. This is what admins, developers, and architects will be updating within Salesforce. The end user such as a sales rep will interact with the metadata in the sense of the layout definition determining what they can […]

Randomly Select Records in a List

Within Salesforce if you would like to randomly select a record / object out of a list you would have to create something custom. This article will go through a randomizer class with several methods for how to randomly select a single record in a list, how to randomly select multiple records in list, and […]

Changing a Text Field to a Rich Text Field

You created a text field based on business requirements, everything gets implemented to production and now requirements changed where you need to change the field to a rich text field. To add to that you have added apex references to the field. If you check the UI go to the field you want to change […]

Identify Production / Sandbox Salesforce Org in Apex

In order to write reusable code and not hardcode in Apex there are times you will need to know if you are working in a Sandbox or Production org. Most of the time it would be to change variables such as knowing when to use a dev named credential vs a production named credential (hopefully […]

Tasks in UI aren’t Querying correctly

If you have tried to query a Salesforce Task that you can see in the UI but can’t query via Developer Console or Visual Studio Code. More than likely you are trying to query an archived Task. Don’t worry I have done this many times and keep forgetting about it. Luckily there still is a […]

How to Reduce Apex Heap Size Errors

If you are receiving this error: ‘Apex heap size too large’ it can be difficult to get rid of. Often neglected Heap refers to the amount of memory the transaction is using. If you have to query many objects / records and put them into a list you may run into this issue, especially if […]

1 2 3 4