StackExchange API on Salesforce!

As you probably already know, I am a huge fan of the Salesforce StackExchange. I recently learned that the StackExchange actually has an API exposed to pull information out of their system. I thought it...
Continue Reading 2 comments

Dependency Injection in Apex

The concepts of Inversion of Control (IoC) and Dependency Injection are well known in the traditional development world. I won’t delve into either concepts too deeply as others have done it in more...
Continue Reading 4 comments

Extending Chatter Image Gallery using ConnectApi

Last Monday, I wrote a post about using the ConnectApi to create an image gallery from Chatter image attachments entitled Chatter Image Gallery using ConnectApi. You must read this article as it is the...
Continue Reading 1 comment

Chatter Image Gallery using ConnectApi

The ConnectApi namespace (also called Chatter in Apex) provides classes for accessing the same data available in Chatter REST API through Apex. You can use Chatter in Apex to create custom Chatter experiences...
Continue Reading 1 comment

Proper Unit Test Structure in Apex

A unit test is typically described as: a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating...
Continue Reading 17 comments

Generate a Set of Ids from a List of Objects

Have you ever found yourself with a list of objects and all you really wanted from that list was a Set of their Ids? Maybe you were planning on performing a SOQL query using those Ids in the WHERE clause...
Continue Reading 7 comments

Conserve DML Statements

Apex provides a robust framework for working with the data inside of Salesforce called DML(Data Manipulation Language) statements. DML statements consist of a few different operations. These operations...
Continue Reading 5 comments

NO_MASS_MAIL_PERMISSION Error Fix

Was everything running smoothly and then all of a sudden you started seeing this? System.EmailException: SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION, Single email...
Continue Reading 0 comment
SOQL vs SOSL

SOQL vs SOSL – Which to use and when?

SOQL and SOSL both search Salesforce for different types of information. Often times, when first starting with Salesforce, it can be unclear which to use and when to use each one. This begs the question: What...
Continue Reading 1 comment