Using the Apex Crypto Class with Examples

The Apex Crypto class provides a number of cryptographic functions for creating digests, message authentication codes, and signatures, as well as functions for encrypting and decrypting information. These functions allow you to protect the confidentiality of data as well as allow external systems to verify… Read More

Prevent an Apex Trigger from running twice

Recently I encountered an issue where I needed to stop a trigger from running twice. For instance if you are making an update in a trigger that uses the Trigger.isUpdate context. In this scenario if we make an update inside the Trigger.isUpdate context it will loop forever… Read More

Apex Test Utility Class

When programming on the Salesforce platform in order to deploy anything to production you need to have a “Apex Test Class” that runs over 75% of the code without errors. To make this task as painless as possible you should create whats called a Apex… Read More

For Loops in Apex

Creating For Loops in apex is needed for many different tasks you’ll be given as a Salesforce Developer. Here are some ways you can implement For Loops in your code:

For lists or set iteration: Use this any time you want to loop over… Read More

Understanding Data Types in Apex

Most programming languages support common data types of real, integer and boolean. In the Apex programming language for Salesforce this remains true. Before programming on the salesforce platform you should get familiar with the different data types that are available to you. Primitive: Integer, Double, Long,… Read More

Intro to Beginner Apex Triggers

In this post I’ll explain how to create an Apex Trigger to help associate new records with existing records. The code example ill be providing is to help solve for situations where you need to associate a new custom object record to an account. You’ll… Read More

Managing values at runtime in Apex

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam molestie molestie nisl, eu scelerisque turpis tempus at. Nam luctus ultrices imperdiet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse velit orci, pretium ut feugiat nec, lobortis et est. Nullam… Read More