What is Opportunity Contact Role In Salesforce and how to fetch contact details from opportunity contact roles

Salesforce is cloud based platform where we configure the salesforce according to our business flow, so before jumping to Opportunity contact role, let consider a scenario where your team is working on the opportunity and your team want to discuss something about opportunity with client, now there can be so many person in company, so to whom should your team talk and who take what decision on the opportunity, as there are so many peopleContinue Reading

How to get recordtype name and ID with SOQL query

In salesforce you are writing an apex class or trigger and you want that your logic to be work only for particular record type then you put IF condition in your code and in that IF condition you will check that this logic should works only for the particular recordtype, right ? We can achieve that in multiple ways, we can fire a SOQL query and can fetch the recordtype name but SOQL query will countContinue Reading

Cross object reference field in salesforce using trigger

Cross object reference means to refer the value from a field from the parent object to child object, this can be easily be done using a formula field but sometime we may face some scenario where we have to lookup the value from the parent object to child object using the trigger, there could be any scenario as today i have face an issue where i was not allow to create more cross reference fieldsContinue Reading

Blob : primitive data type in Salesforce

Primitive data types in salesforce are the basic data type which can’t be broken further into lower data types. In salesforce we have blob,Integer, Double, Long, Date, Datetime,Time,Decimal,String, ID,Boolean and object, we will discuss all these primitive data types in details with example and scenario where they can be use in salesforce, so Let start discussing these data types in details, A blob is data type which collection of binary data, now if i willContinue Reading

Date And Number Formatting In Visualforce Pages

There would be number of time we need to format the date and time in visualforce page because each country have different way of representing the date and time, for an example some countries have a month in starting of the date or some countries have day in starting of the month, so it’s really important to format date and time in visualforce pages, to format date and time in visualforce page we have toContinue Reading

Data loader: Date and Time Zone Problem

As we all know that data loader is a tool that use to export and import data over the salesforce, it is used for inserting,updating,deleting and upserting the data while export and export all are use to export data from salesforce.This post we would talk about Time Zone related problems in the data loader and how to encounter those problems.if you ever try to insert or upload data in date fields over the salesforce organizationContinue Reading

How to perform DML operation in after insert trigger

Have you ever been into a situation where you want to update the same object on which after insert trigger have been written on, In a simple lay man language let’s consider a situation that you have to written a trigger on after insert event and that trigger would update some fields of some other objects and this trigger would also need to update the same record after creation of that record.Let’s take a generalContinue Reading