Getting Started with Asynchronous Apex on Force.com

Break out of Salesforce's Apex Trigger and the basic limits of Apex by stepping into asynchronous processing. This course teaches Salesforce's techniques of future methods, queueable Jobs, scheduled Apex, and batch Apex.
Course info
Rating
(13)
Level
Intermediate
Updated
Aug 2, 2017
Duration
1h 21m
Table of contents
Description
Course info
Rating
(13)
Level
Intermediate
Updated
Aug 2, 2017
Duration
1h 21m
Description

If you're a new intermediate Salesforce developer stuck in the capabilities of Apex Triggers, it may be time to use asynchronous Apex. Asynchronous Apex fires on Salesforce's queue and outside the context of triggers, which allows for massive workloads, expensive computations, and parallel processing. In this course, Getting Started with Asynchronous Apex on Force.com, you'll learn how to use asynchronous Apex to help round out your skills as a Salesforce developer. First, you'll explore future methods and queueable jobs for accomplishing what triggers cannot. Next, you'll dive into scheduled Apex and batch Apex. Finally, you'll cover how to manage massive workloads. By the end of this course, you'll have the fundamental knowledge required to build your own asynchronous solutions to solve the challenges of your organization when it prefers to stay with Salesforce as a primary platform.

About the author
About the author

Scott is the director of Elega Corporation, which produces business applications and develops games. His development career was launched in the litigation support industry and has expanded to solar energy using Salesforce and its Apex programming language, Python, C#, and numerous kinds of integrated databases.

More from the author
Salesforce Sharing and Security Fundamentals
Intermediate
2h 23m
Sep 26, 2018
More courses by Scott Lee
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Scott Lee, and welcome to my course: Getting Started with Asynchronous Apex on Force. com. I am the founder and director of Elega Corporation, as well as a software developer of many years who has utilized many technologies. Salesforce has been a meaningful addition to my career because of its ability to rapidly put applications together, and its mixture of code and user interface-related tools. Asynchronous Apex could be your secret weapon in rounding out your skills as a Salesforce developer. It allows high volume processing. Working around Salesforce's governor limits, and pushing forward what Salesforce is capable of is a primary platform for your organization. This course is an introduction to future methods and queueable jobs for accomplishing what triggers generally can't or shouldn't, as well as scheduled Apex and batch Apex for managing massive workloads, either on a schedule or on demand. By the end of this course, you'll know the knowledge needed to start writing your own solutions that break out of Apex triggers, or the basics of the Apex language. Before the beginning of the course, you should be familiar with the basic Syntax of Apex, and writing Apex Triggers, as this course will take you beyond those basics. I hope you'll join me on this journey to learn Asynchronous Apex with the Getting Started with Asynchronous Apex on Force. com course, at Pluralsight.

Introduction
Welcome to Getting Started with Asynchronous Apex on Force. com. I'm Scott Lee, director of Elega Corporation, a company I started to develop business applications, video games, and other interactive content. I'm excited to get started with advancing your skills on Asynchronous Apex. If you're a Salesforce developer by trade, Asynchronous Apex is an invaluable part of your arsenal, and vital to overcoming challenges of high work volume, as well as complexity. In this course, we'll explore the primary tools Salesforce includes out of the box for performing async work on its platform. Although this is a course that introduces Asynchronous Apex, it should be noted that Asynchronous Apex in general should be considered an intermediate skill, so there are some prerequisites. I recommend you having a fairly basic working knowledge of the Apex programming language, particularly, you might find it useful to have written some basic Apex classes and Apex Triggers. If you're not yet acquainted with these areas, or are new to Apex programming in general, this course is not for you. Fortunately, Pluralsight has additional resources for learning the basics of Salesforce and writing code for the platform, and those courses can be a great place to start. In addition, Salesforce has its own documentation and learning resources. Refer to its developer website for more information.

Running Apex on a Schedule
Things like queueables and Future Methods can get pretty complex, especially when you're executing them from the Apex Triggers. On the other hand, with scheduled Apex, the approach is a bit more straightforward. By definition, we can schedule Apex at regular times or even singular times to execute and get certain tasks done. In this module, we'll discover that every time it's time to execute scheduled Apex, certain rules apply, and we'll cover how to manage these scheduled jobs. As it turns out, Globomantics IT management recently realized with their projects they had you working on, they have completely ignored error handling. We'll discuss this too and cover how we can use scheduled Apex to collect some error-related information from custom object records, and notify important users in the Globomantics organization so that they can begin investigating any exceptions. In a demo, we'll talk about the different ways we can schedule Apex, and our specific approach to address Globomantics concern in a real world style example.