Tag Archives: Salesforce Standard Object

Creating Global Picklist Value Set in Salesforce

A Global Picklist means a picklist which you can access for all salesforce objects. In other words if you are creating any picklist, this picklist you can use for your Account, Lead, Opportunity and custom object etc.A global picklist is a restricted picklist by nature. Only a Salesforce admin can add to or modify its… Read More »

Creating SObject Dynamically by Using Id

While working on one of our projects, we faced a challenge where we were supposed to create the object, already existing in the database, dynamically from just an “Id”. We had no information other than the Id field of the record. We can use the functions of SObjectType class to create the instance of a… Read More »

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 »