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

Searching Salesforce Records in Visualforce

This example gets an input from the user on the visualforce page. When you click search it passes the query into the function in the controller which uses Database.query().   Visualforce:



Sending Email Notifications to Assigned User on Task Creation

If you would like to send an email notification to the owner of a task when its created. Using a trigger on the task object before insert you can invoke Messaging.SingleEmailMessage. Below is a code example. Trigger:


How to pass values from visualforce to Apex

Welcome to WordPress. This is your first post. Edit or delete it, then start writing! Controller Class:

Controller class:

AWS Lambda Functions and Salesforce

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

How to use the PageReference Class in Apex

Using the PageReference class can be extremely useful when needing to call apex methods on a visualforce page. It’s important to know that you can do a variety of things like updating,inserting,deleting records but lets cover the basics here. This is how you would do… Read More