5 Mistakes to Avoid in Salesforce Development

Aspire Software Consultancy
3 min readMay 18, 2020

--

Yes, indeed Salesforce is a great tool for organizations that can streamline and transform the business procedures. But it is not a magic wand. Simply buying the Salesforce software will not be of much help if it has not been implemented properly. Salesforce development requires a good knowledge of Force.com. Here, in this article, we will discuss five mistakes that must be avoided by a Salesforce development team:

1. Reaching SOQL queries limit

The customer must not be allowed to make too many API calls per minute. Being a multi-tenant vendor, this may badly affect the performance for other clients on the same instance. In order to restrict the number of API calls over a period, governor limits have been kept by Salesforce. This not only prevents bad code but also saves cloud processing space. One such governor limit is imposed on SOQL (Salesforce Object Query Language). The total SOQL queries issued are 100 in synchronous limit and 200 in asynchronous limit. It is advised to follow the guidelines such as preventing queries inside FOR loops, writing exhaustive test cases, etc.

2. Multiple Triggers on the same object

There are Apex triggers that help you perform custom actions just before and after the events. Writing a single trigger is advisable rather than opting for multiple triggers which can make it difficult for the system to recognize the execution order. However, every trigger that is invoked will not get its own governor limits. Instead of sharing all codes which have been processed including the additional triggers, you can only share the available resources.

3. Not Bulkifying your code

Bulkifying a code means combining repetitive tasks in the Salesforce Apex so that the code handles more than one record at a time. When this bulk code is neglected, it may hit the governor limits. When Apex is initiated by a batch of records, only a single instance of the Apex code is executed. However, it must be able to handle all the records in the given batch. In case, a batch of records invokes that same Apex code, all those records have to be processed as bulk to write scalable code and prevent hitting the governor limits.

4. Troublesome User Experience

A rich UI with pop-ups and images can be developed with the help of Visualforce which can be bothersome for the user. The pages get overloaded with data and functionalities, making navigation to buttons more difficult. Also, the unbound data can affect the performance, record limits, governor limits for view state, heap size, total page size, etc.

5. Keeping Hard coded programs

Although Salesforce development works on keeping the Apex code dynamic and improving the formula, hard coded urls can be troublesome in case the environment gets changed. Therefore, the concept of dynamic urls is advantageous in the long run.

To understand it more clearly and discuss the right ways to start adopting and maximizing Salesforce development in your organization, you can reach out to Aspire Software Consultancy, a renowned Salesforce development company in Bangalore. Being your Salesforce partner, ASC will optimise your sales process and help you grow with efficient cloud administration.

--

--

Aspire Software Consultancy
Aspire Software Consultancy

Written by Aspire Software Consultancy

0 Followers

Software Development Company in US | IT Services & Solutions in US | Aspire Software Consultancy https://aspiresoftwareconsultancy.com/

No responses yet