Author Archives: greysalesforce

Get key prefix of an object using Apex

Every record in Salesforce has an ID which is used to uniquely identify the record. Each ID value is globally unique. The first three digits represent the object type. For example, the Account object uses the 001 prefix; the Note object uses the 002 prefix, Contact uses 003, Users 005, Opportunity 006 etc. We can… Read More: Get key prefix of an object using Apex »

Delete apex class or trigger in Salesforce Production Org

It is not possible to directly delete an Apex class or trigger after it has been deployed to production. A quick workaround to delete or disable Apex Class/Trigger is by using eclipse and Force.com IDE. Here are the steps – Download Force.com IDE. Connect to the salesforce production org. Download the apex class/trigger. Open the… Read More: Delete apex class or trigger in Salesforce Production Org »

Quick way to find out the release of Salesforce Instance

In our last blog post, “Quick way to find edition of Salesforce” we had described how we could quickly find the edition of the Salesforce instance. In this post, we would be describing how a user can quickly find the release of the Salesforce instance. As you might know, Salesforce provides three product releases every… Read More: Quick way to find out the release of Salesforce Instance »

Quick way to find edition of Salesforce

There are currently five editions of the Salesforce.com cloud. They are Group, Professional, Enterprise, Unlimited and Performance Edition. The features and pricing for the editions vary and the complete details of features as well as pricing for the editions can be found here. While working on a Salesforce system, we may need to know the… Read More: Quick way to find edition of Salesforce »

Invoke Future Methods through Apex Trigger for web service callout

While developing applications in force.com, sometimes we need to consume external web service in apex trigger. But, callouts cannot be made from apex triggers as that restricts database transaction until the callout is completed and the time limit for this is up to 120 seconds. You can find other callout limits here. The only way… Read More: Invoke Future Methods through Apex Trigger for web service callout »

DateTime field and Time Zone Settings in Salesforce

Recently, for one of our integration programs we were trying to pass data from our datetime field to the Salesforce datetime field.  We were passing Date as “2014-01-02 00 00 000” but while viewing the same record in the Salesforce User Interface it was displaying the date as “2014-01-01 8 PM”. This posed a big… Read More: DateTime field and Time Zone Settings in Salesforce »

Consuming External Web Service in Apex

While developing applications in force.com, there may be a requirement where we will need to consume external web service. There are many external websites which provide service and which can be consumed from our applications. One of the features we have in Salesforce is that we can easily consume External Web Services. Greytrix Releases First… Read More: Consuming External Web Service in Apex »

Create Button for List View

Salesforce provides some built in buttons while showing the list of records. Similarly we can add additional buttons for our custom functionality. We had a requirement wherein we needed to validate the records in the list with external web services. For this we created a custom button in the list view so that when the… Read More: Create Button for List View »

Request updated information from Salesforce contacts

A lot of times it happens that an organization has outdated information of its contacts. Salesforce provides a useful Stay-in-Touch Requests feature using which the administrator or someone who owns a contact can send an email to the contact requesting to provide updated contact details. To request updated information, follow the below steps – Navigate… Read More: Request updated information from Salesforce contacts »