SalesforceBlue

Feel the rhythm of Salesforce

Apex

Apex Fundamentals

Apex is the server-side language for Salesforce which lets you write business logic and interact with the data layer using queries. It is a strongly typed and object-oriented programming language.

Let’s also know what does it mean when we say strongly typed? It means that you have to declare the type of a variable before using them.

For Example:

String welcome = 'Hey! Welcome to SalesforceBlue :)';

In the above block, we have declared the variable type as String. In some programming languages such as Javascript, you don’t have to explicitly declare the variable type as it is handled by the language itself.

What does being object-oriented programming language mean here? It means that Apex is a programming language that is based on the concept of an Object. We will cover them in more detail in Apex Classes.

An apex transaction executes with the governor limits enforcement. Let’s understand what is an Apex transaction and governor limits.

APEX Transaction

It’s a set of operations that is executed as a single unit.

It can have an entry point of a trigger, an anonymous block of code, a visual force page, a custom web service method, etc.

For Example, You click on a save button which calls your save() Apex method. Now, this apex transaction will start from the point save() method starts and will go till the end of this method call.

Governor Limits

Salesforce ensures that its resources are fairly shared in its multi-tenant architecture. This is such an interesting and core concept to Salesforce that we have made a new section for it to discuss.

You can learn more about them in detail over here – Salesforce Governor Limits

Thank you for visiting SalesforceBlue.com
If you have any queries feel free to write down a comment below 🙂


Leave a Reply

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