Free Salesforce Developers Tutorials >

Chapter 2 - Apex Basics >

When to Use Apex and Flows of Action in Apex

When to Use Apex and Flows of Action in Apex

What You’ll Learn


S2 Labs

When to use Apex?

  1. To perform a couple of business processes that are not supported by workflows or processes or salesforce flows.
  2. To perform complex validations on multiple objects.
  3. To create web services and email services.
  4. For transactions and rollbacks.

Flows of Action or Client Server Architecture

1. Developer Action

When the developer writes and saves the code to the apex platform. The platform application server compiles the code into a set of instructions that can be understood by the apex runtime, interprets, and then saves those instructions as compiled apex.

 

 

Flow of Action in Salesforce

 

2. End-User Action

When the end-user performs some action that involves the apex code or when the end-user triggers the execution of the Apex by clicking a button or accessing a VF page or interacting with the lightning component. The platform application server retrieves the compiled instructions from the meta-data and sends it through apex runtime which interprets before returning the result. The end-user observes no differences in the execution time as compared to the standard application platform request.

 

salesforce-developer

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Developer Training for beginners . But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *