Salesforce Apex Tutorial - Apex Basics

 




Hi Everyone, 
Today onwards I am going to start the blog series for Salesforce Apex development, so if you want to learn more then follow my blog post.

Apex Basics

Apex is a strongly typed object-oriented programming language that is used as a server-side language for salesforce development.
It allows the developers to execute flows and transaction control statements.- Apex enables Developers to add business logic to most system events like button clicks related to record updates, connect visualforce pages, Lightning Component(Aura), Lightning Web Component(LWC), and many more. 

Apex language Features

1. Integrated: It provides built-in support for DML calls.
2. Inline Salesforce object query language.
3. Easy to use.
4. Easy to test.
5. Version
6. Multitenant aware.

When Should I use Apex:

  1. To create an email service 
  2. Perform complex validation over multiple objects.
  3. To create a complex business process that is not supported by the workflow, process builder, or Lightning Flow(Flows).
  4. Create a custom transaction logic.
  5. Attach custom logic to another operation.
  6. Create a controller for Visualforce Pages, Aura component, and Lightning Web Component.
  7. Integrate the external system
  8. Create web services for the external system.

How does Apex work :

All apex programs run entirely On-demand on the Force.com platform where you demand and salesforce will provide you.

  1. First, the platform application server compiles the code into an abstract set of instructions that can be understood by the apex runtime interpreter.
  2. The compiled code is stored in metadata.
  3. When the end-user triggers the execution of apex by clicking a button or visualforce/Aura/LWC page the application server retrieves the compiled instructions from the metadata and sends them to the runtime interpreter before returning the result.

These are the basics of why and when to use apex in salesforce.

Connect/Follow for more information on Salesforce Apex.

Thanks!
Next Post Previous Post
No Comment
Add Comment
comment url