Category Archives: apex develeopment

Heap Size: Elephant in the room

Heap size is a common, yet neglected problem whenever it comes to Salesforce Apex development. Heap size in actual is the count of memory used by the variables, object instances in an Apex class. In order to store these objects & variables, memory is allocated in Salesforce which is derived from allocated Heap. The Heap size truly depends on the type of transaction, Salesforce provides a heap size limit of 6MB for synchronous transaction and 12 MB for asynchronous transaction. Whenever, too much data is stored during processing an error occurs prompting “Apex heap size too large. You must have encountered this error at least once if you are a developer.

Here are a few tips to ensure that the heap limit does not exceed the maximum size and your code runs smoothly

heap size in salesforce

Continue reading

Posted in apex develeopment, Salesforce, salesforce development, salesforce integration, Salesforce.com. Tagged with , , .

Developing Visualforce Apps using AngularJS

Have you ever wondered how cool it would be to have the flexibility and features Angular JS framework provides, inside a Visualforce page in Salesforce platform? Well, wait no more, keep reading to get a perfect solution for this. This blog will introduce you to AngularJS and how to develop Visualforce apps using angular. Every web application requires client-side JavaScript, HTML, and CSS. Without using any server framework like Rails, Node, PHP, etc. the entire application can be built using just the front-end tools and languages.

What is ANGULARJS?

AngularJS is a powerful JavaScript framework for constructing dynamic web applications. It is used to develop mobile and web applications. The good thing about Angular is that it has a set of primed modules to simplify the building of single page applications. Single page application (SPA) is a web application that dynamically renders the data on the current page without reloading the whole page. All the code (JS, HTML, and CSS) is retrieved with a single page load and navigation between pages is performed without reloading the whole page.

Continue reading

Posted in apex develeopment, Apex Development, force.com app development, salesforce development. Tagged with , , , .

Salesforce Deployment Tools

A typical development process requires building, testing, and staging before releasing to a production environment. During this development cycle, one might migrate many times, either to keep development organizations in sync or to move changes through development organizations toward production and this is what we call Salesforce deployment.

Salesforce deployment is the migration of metadata from one Salesforce organization to another. If you are looking to enhance your Salesforce DevOps (Continuous Integration and Continuous Deployments) practices, this blog could get you started with the basics.

There are number of deployment tools available each having its own pros and cons. Some of them are listed below:

Change sets

Continue reading

Posted in apex develeopment, Apex Development, force.com app development, salesforce development, Salesforce DevOps, salesforce integration, sfdc, Uncategorized. Tagged with , , , , .

Big Objects in Salesforce

Have you ever been in a situation where you need to store gigantic amount of data in your Salesforce org? Are you tired of using third-party storage systems and writing web service calls to get the massive amount of data? Having to crunch those large numbers, though a reflection of your own success, can be troublesome and performance degrading. Salesforce has come to the rescue again by introducing big objects-which are objects with massive storage capabilities on the Salesforce platform itself. They provide consistent performance over a data set of the order of billions and are accessible through a standard set of APIs to your org or to an external system.

Continue reading

Posted in apex develeopment, force.com app development, Salesforce, sfdc.

Salesforce Development Best Practices

In this blog I will share the Salesforce Development best practices that I have learned over the years. I have tried to give a few code snippets to provide examples. Feel free to use the code as-is.

Salesforce Development Best Practices

Salesforce Development Best Practices

Continue reading

Posted in apex develeopment, Apex Development, Salesforce, salesforce administrator, salesforce certified developer, Salesforce Challenges, salesforce consultant, salesforce customization, salesforce development, Salesforce.com, sfdc. Tagged with , , , , .

Contact Roles in Salesforce

Mirketa_contact_roles_In_Salesforce

Contact Roles in Salesforce.

I observed in many salesforce communities that lot of salesforce people facing challenges in associating one contact with multiple accounts, cases, Contracts or Opportunities.

In salesforce architecture Contact has a Standard Account field, which means a Contact can be associate with on account.

However we can create few more Custom lookup fields on Contact to associate few more accounts, but that will not be a good approach to achieve this requirement if you want to associate one contact to n number of accounts, cases or Opportunities.

Continue reading

Posted in Agile, apex develeopment, force.com app development, Force.com Offshore, Learn Salesforce, Mirketa Salesforce contact role, MirketaInc, Salesforce, salesforce administrator, salesforce certified, salesforce certified developer, Salesforce Challenges, Salesforce cloud Implementation, salesforce community implementation, salesforce consultant, Salesforce Contact Role, salesforce for healthcare, Salesforce.com, Visualforce. Tagged with , , .