First Step toward Learning Apex Programming
So, here we are taking our first step towards Salesforce Development.
We need to know, what apex programming language is before getting into it. In this story, We will be introducing ourselves to what Apex Programming language is, when should I use Apex and Limitations of Apex.
What Is Apex?
Apex is a Programming Language that is used by Salesforce developers to achieve complex business requirements. Most of the business requirements can be taken care of by Salesforce’s inbuilt functionalities but there will be some requirements that need your attention and you need to write some code logic to fulfill them. Apex enables the developers to add business logic to system events, button clicks, and record updates.
Apex is a strongly-typed, object-oriented programming language that is very similar to Java. By strongly-typed, we mean that whenever we declare a variable in Apex it should have a data type defined with it.
For eg., A usual variable holding an integer value will be declared as
Integer i; // Declared a variable that will hold an integer value
or Integer i = 10; // Declared a variable that holds an integer value 10
Features of Apex :
- Strongly typed
- Object-oriented
- supports integrated DML operations using SOQL
- Easy to Test with the built-in testing provided by salesforce. Code coverage can be analyzed by the test results.
- upgrades automatically
When Should I use Apex :
Apex should only be used when the business requirement is complex and cannot be fulfilled with the built-in functionalities of Salesforce.
Some scenarios where Apex can be used are:
- To perform complex validation on multiple objects
- To create complex business processes that are not supported by workflow.
- Also for the development of visualforce and Lightning Component.
I will be looking forward to writing apex codes, learning data types, control flow statements in Apex Programming Language. I will also be completing some basic trailhead modules to get started with Apex in the next story.
How Can You Contribute?
- Connect with me on Twitter or Linkedin or Instagram.
- Provide me continuous feedback and suggestions for moving ahead in this journey.
- Share the series on Twitter and LinkedIn.
Posts In This Series :
Salesforce Development — Learning Apex Programming, VisualForce, Lightning Components
First Step toward Learning Apex Programming
Day 2 in Apex — Writing apex codes
Working with sObjects, SOQL, and SOSL
Understanding Salesforce Triggers and working with them
Apex Test classes and methods
Understanding VisualForce Concepts
Controllers in VisualForce