Teach Me Salesforce

A community approach to learning salesforce.com

Apex Workshop Webinar 10: Exception Handling

leave a comment »

The video for the workshop session on Apex Exception Handling can be found on YouTube here:

The trigger and its unit test we worked with in this session is available here:

Advertisements

Written by Always Thinkin

July 8, 2017 at 7:05 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 9: Unit Tests

leave a comment »

The video for the workshop session on Apex Unit Testing can be found on YouTube here:

The trigger and its unit test we worked with in this session is available here:

Written by Always Thinkin

July 8, 2017 at 7:01 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 8: Invocable Apex

leave a comment »

The video for the workshop session on Invocable Apex Classes can be found on YouTube here:

The original source is from a presentation at Dreamforce ’16 based on https://github.com/mshanemc/processBuilderBlocks.
In our session we worked with:
PBB Lock:
https://github.com/mshanemc/processBuilderBlocks/blob/master/src/classes/PBBLock.cls
PBB Delete:
https://github.com/mshanemc/processBuilderBlocks/blob/master/src/classes/PBBDelete.cls
PBB Utility (dedupe):
https://github.com/mshanemc/processBuilderBlocks/blob/master/src/classes/PBBUtilities.cls

Ohad’s String Utility

Written by Always Thinkin

July 8, 2017 at 6:54 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 7: Classes

leave a comment »

The video for the workshop session on Apex Classes can be found on YouTube here:

The triggers and their unit tests for practicing are available here:

Written by Always Thinkin

July 8, 2017 at 6:09 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 6: Triggers

leave a comment »

The video for the workshop session on Apex Triggers can be found on YouTube here:

The triggers and their unit tests for practicing are available here:

Written by Always Thinkin

July 8, 2017 at 5:43 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 5: Control Flow

leave a comment »

The video for the workshop session on Apex Control Flow can be found on YouTube here:

The worksheets for practicing are available here:

Answers:

Written by Always Thinkin

July 8, 2017 at 5:34 pm

Posted in Apex, Beginner, Code Sample

Apex Workshop Webinar 4: SOQL

leave a comment »

This workshop introduces SOQL, the query language used to retrieve data from Salesforce in Apex. Building on what we learned in the previous workshop about Collections, you’ll learn how to populate Lists and Maps using SOQL statements. We also learn about the best practice of collecting your records in a Map for DML statements to ensure that you don’t have duplicate records records.



The worksheet below for practicing can be copied directly into a new Apex Class in your Developer Console (you must name the Apex class as indicated). It is a test method which means that you can use Run Tests to see whether your code runs successfully after you uncomment (remove the //) the lines starting with FIX ME! and make changes. It is designed to work with the sample data that comes in every Developer Edition Org.

Practice (name your new Apex Class ‘SOQLqueries’):

Answers (same file as above but with FIX ME lines corrected):

Written by Always Thinkin

July 8, 2017 at 5:25 pm

Posted in Apex, Beginner, Code Sample