Category Archives: Apex Code

setTabIcon in Service Console is not showing full icon/image.

By | May 25, 2017

Recently I came across service console in Salesforce, Where I need to show the tab Icon for a custom visual-force page. There is a standard method setTabIcon() , which we can use to set the tab icon. This method works fine if we have image/icon of exactly 16*16 px. But if our image/icon is larger, than its… Read More »

Datetime on Visualforce Page

By | February 19, 2017

Whenever we are working with datetime on visualforce page, we may face some issue either with its formatting or its value not coming correctly. So basically the formatting of date depends on the locale of the user, and second thing which is its value depends on the timezone. In the salesforce database each datetime value is… Read More »

Getting “Default New User License” of customer portal in apex code.

By | January 22, 2017

Sometime we need to get Default New User License of Customer Portal in the apex code, After doing some google search, I found that there is no direct method or way to do it in the apex. To get the Default New User License of customer portal in apex code, we need either customer portal name or… Read More »