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

Difference between the multiple messaging options in Visualforce?

I have always been curious what are the exact differences between all of the messaging options Visualforce provides, such as <apex:message>, <apex:messages>, <apex:pageMessage>, and <apex:pageMessages>....
Continue Reading 23 comments