When to use Apex?

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

Flows of Action

  • 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.

  • 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. 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.

Cyntexa CTA

Our Recent Blog

Share This Post