Monish's picture

Main profile

About me : 


Salesforce Certified platform developer 1, Service cloud consultant, Sales cloud consultant,

Certified salesforce developer (401), Certified administrator,  Blogger, Interested in cloud and web application development. wink

Always goes by  " if it's not fun why do it ". coolyes 

Hit me on twitter for updates.

Posts from this user

40 articles from this user

Salesforce platform events

Salesforce platform events are based on event-driven software architecture. Platform events are cloud message platform where you can publish and subscribe to an event. 

The publisher and subscriber can be a Salesforce app, external app, apex code, process builder or a flow.

Adding Lightning design system to visualforce page

Migrating visualforce page to lightning experience is more common nowadays. Not only new changes are created using the lightning design system in visualforce page but converting the legacy visualforce page to new lightning design system is mandatory when you work with lightning experience. 

An easy way to add lightning design system to your visualforce page is by adding the <apex:slds> tag in your visualforce page. Make sure you have made the standardStylesheets="false", so that both the style system wont conflict.

Test class for batch apex

Batch apex is always in rescue whenever you need to process a huge chunk of data.

Consider the following batch apex. 

The business functionality it achieves is.

Check for a change in a custom field called keywords__c in Account object and Insert that topic into a community.

Geo codes in salesforce

Getting Geocode information in salesforce is made easy using clean rules in service.

By default, Salesforce provides clean rules for Account, Contact and Lead object.

Let's see how we can make use of this feature.

Activate clean rule

The first thing we want to do is activate clean rule for the respective object. In our case, we will activate for the Account object.

Go Setup --> Administration --> Clean --> Clean Rules.

Profile mass edit

As a Salesforce Admin, We always came across a situation to edit multiple profiles to give permission to objects or system permission. Editing the profile one by one is a time-consuming work. But we can edit up to 200 profiles using enhanced profile list view without going to each profile.

You need the following permissions to do it.

  1. Manage profiles and permission set.
  2. Customize application.

Go to Setup --> User interface. 

Getting a schema of a csv file in Talend

In Talend tool if you want to get the records from the CSV file. You want to configure its schema.

Let's see how to do that.

In the Repository pallet expand metadata --> File delimited --> (Right click) Create file delimited.

Give a file name --> click next --> select the file path --> click next.

Now is the interesting part. Configure the dialog box as shown below and then click refresh preview.

Valdating a lead field while converting

I recently came across a scenario where a client wants to ensure that certain fields in lead should have a value before it is converted.

So let's dive into it...

Use case:

While converting a lead phone should have been entered.


There is checkbox in lead object which says either the lead is converted or not. So we will use this field for our solution. 

The field api name is IsConverted.

Go ahead and create a validation rule which has the following error condition formula.

Enabling login as any user in salesforce

As developer or Admin when developing complex stuff, configuring the security model, debugging user support.

We should able to login as another user in Salesforce which will make sure that user only have access to what we have actually configured or the security model is correct.

In order to enable this feature 

Go to Setup -->  Security controls --> Login Access policies