Monthly Archives: March 2014

View State and Associated best practices

View State and Associated best practices Few days back I gone through a very interesting article on view state. I putting some its contents as part of this post. This post will be really very help full for the developers who are new to salesforce and looking for good development practices. The salesforce Summer ’10 […]

How to change email id and user name in salesforce?

How to change email id and user name in salesforce? Yesterday we have a small discussion of how to change the email id and user name in salesforce.  One of our colleague left our company. SO we don’t want him to get further mails or to log in to salesforce. The below procedure was followed […]

When to use SOQL and SOSL in salesforce……..

When we have to use SOQL and when we have to use SOSL in salesforce. SOQL (Salesforce Object Query Language) Use the Salesforce Object Query Language (SOQL) to construct simple but powerful query strings in the queryString parameter in the query() call, in Apex statements, in Visualforce controllers and getter methods, or in the Schema […]

Wrapper Class in Salesforce

Wrapper Class in salesforce: Lot of people are confused what does wrapper class mean. I am trying to explain by giving two examples. I hope it makes sense. If you have any further queries, please mail me. Displaying the check box in a data table or page block table is a general requirement in every […]

Custom Multi-Select picklist field in Visualforce

There are several scenarios, where in we might have used input field for getting multi-select picklist field. What if you can’t really use an input field, here is the example code which will solve these type of problems..     Apex Controller Code:   public class multiselect {       Set<String> originalvalues = new Set<String>{‘A’,’B’,’C’,’D’,’E’,’F’,’G’}; […]

VLOOKUP() function in Salesforce

VLOOKUP() returns a value by comparing the field on the related object. It can be easily understand by following example. Syntax:VLOOKUP(field_to_return_from_lookup_object, field_to_compare_on_lookup_object, value_to_compare) Suppose there is a situation in which you have to configure a validation rule to compare/verify the field valueagainst/with the value store on the related object, then this can be achieved by VLOOKUP easily. For […]

Production Support – Common Errors in Salesforce

The following common errors we will come across when we are in production support. Plz let me know if you need any further explanation in detail. The ID must begin with / error in Salesforce This error occurs when action attribute value is wrong. action=”{!methodName}” is correct. action=”methodName” is wrong. Unable to get values from […]

Salesforce Managed and Unmanaged Packages

I was recently asked to comment on the practice of using unmanaged packages to distribute applications on the Force.com platform. Apparently claims were being made that this was great news for customers because it provided great flexibility and openness. I’ll make my position clear from the outset that I think this approach is BAD NEWS […]

Class with Sharing and With out Sharing in Salesforce

Class with sharing and without sharing in Salesforce With Sharing – Enforce the sharing rules that apply to current user. Without Sharing – Doesn’t enforce the sharing rules.   If a class is not declared as either with or without sharing, the current sharing rules remain in effect. This means that if the class is […]

Interview Questions.

The following interview questions were faced by me from my current company in round 5. Max time was given to me for answering.  1) Other Stake Holders are already showing interest in adopting the tool to aid in development of lean operations. What are some ways that we could interest them in co-creation of the […]