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

Open Command Prompt In full Screen In Windows 7,8 and 8.1

Command prompt is also called disk operating system a.k.a DOS, I remembered when I used windows XP I frequently used command prompt to create folders and used it to run the java and c++ code thorug it.In windows XP I was able to view the command prompt in full screen by just hitting ALT+Enter but after releasing of windows 7 and other onward operating system they stop providing you the functionality to open the commandContinue 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