Apex assigns a data type in Salesforce to all variables and expressions, such as sObject, primitive, or enum. We use these data types as required depending on the condition. Integer, Double, Long, Date, Datetime, String, ID, or Boolean are examples of primitives. Data types in Salesforce.

Salesforce Data TypeRange and DescriptionTransformation Data Type
AnyTypePolymorphic data type that returns string, picklist, reference, boolean, currency, integer, double, percent, ID, date, datetime, URL, or email dataString
Base64Base64 encoded binary dataString
BooleanBoolean (true/false) valuesInteger
ByteA set of bitsString
ComboboxEnumerated valuesString
CurrencyCurrency valuesDecimal
DataCategoryGroupReferenceTypes of category groups and unique category namesString
DateDate valuesDate/Time
DateTimeDate and time valuesDate/Time
DoubleDouble valuesDecimal
EmailEmail addressesString
Encrypted StringEncrypted text fields contain any combination of letters, numbers, or symbols that are stored in encrypted formString
IDPrimary key field for a Salesforce objectString
IntFields of this type contain numbers with no fraction portionInteger
Master recordID of the merged recordString
MultipicklistMultiple-selection picklists, which provide a set of enumerated values from which you can select multiple valuesString
PercentPercentage valuesDecimal
PhonePhone numbersString
PicklistSingle-selection picklists, which provide a set of enumerated values that you can select one value fromString
ReferenceCross-references to another Salesforce objectString
StringCharacter stringsString
TextareaString that appears as a multiple-line text fieldString
TimeTime valuesDate/Time
URLURL valuesString
Data Types in Salesforce

Fields come in various types, including text, number, picklist, date, and more, and they are employed to house data that pertains to a particular object.

Related Posts
What is a Salesforce Jumpstart?
Salesforce Quickstart

A Salesforce Jumpstart is a program designed to help businesses quickly and efficiently implement Salesforce, which is a powerful customer Read more

50 Advantages of Salesforce Sales Cloud
Salesforce Sales Cloud

According to the Salesforce 2017 State of Service report, 85% of executives with service oversight identify customer service as a Read more

Salesforce Artificial Intelligence
Salesforce CRM for AI driven transformation

Is artificial intelligence integrated into Salesforce? Salesforce Einstein stands as an intelligent layer embedded within the Lightning Platform, bringing robust Read more

CRM Cloud Salesforce
Salesforce roles and responsibilities

What is a CRM Cloud Salesforce? Salesforce Service Cloud is a customer relationship management (CRM) platform for Salesforce clients to Read more