
To setup email services, you need to include processing the contents, headers, and attachments of email using apex code. To implement functionality that can’t be implemented using existing workflows flows and process builders functionality.
To execute custom apex logic when a DML operation is performed.To implement custom validation on sobjects.To create web services that integrate Salesforce with other applications.
#Money manager ex tutorial bills code
Apex automatically upgrades with every Salesforce release.Īpex code should only be written if a business scenario is too complex and can’t be implemented using the pre-built functionality provided by Salesforce.įollowing are the few scenarios where we need to write apex code:.,here Account is a standard salesforce object. Salesforce object can be used as a datatype in apex.
Any code that crosses the salesforce governor limit fails, an error shows up.
Apex executes in a multi-tenant environment, and Salesforce has defined some governor limits that prevent a user from controlling the shared resources. Allows you to create a unit test and execute them to verify the code coverage and efficiency of the code in apex. You can query sObject records using SOQL(salesforce object query language) and SOSL(salesforce object search language) in apex. You can perform DML operations like INSERT, UPDATE, UPSERT, DELETE on sObject records using apex. Here are the important features of Salesforce Apex: