The API uses the following primitive data types In Salesforce :
Data types
,
Salesfroce
base64 | Base 64-encoded binary data. Fields of this type are used for storing binary files in Attachment records, Document records, and Scontrol records. In these objects, the Body or Binary field contains the (base64 encoded) data, while the BodyLength field defines the length of the data in the Body or Binary field. In the Document object, you can specify a URL to the document instead of storing the document directly in the record. |
boolean | Boolean fields have one of these values: true (or 1), or false (or 0). |
byte | A set of bits. |
date | Date data. Fields of this type contain date values, such as ActivityDate in the Event object. Unlike dateTime fields, date fields contain no time
value—the time portion of a date field is not relevant and
is always set to midnight in the Coordinated Universal Time (UTC)
time zone.
If you specify a date value in a query, you can filter
on date fields only.
|
dateTime | Date/time values (timestamps). Fields of this type handle date/time
values (timestamps), such as ActivityDateTime in the Event object or the CreatedDate, LastModifiedDate, or SystemModstamp in many objects. Regular
dateTime fields are full timestamps with a precision of one second.
They are always transferred in the Coordinated Universal Time (UTC)
time zone. In your client application,
you might need to translate the timestamp to or from a local time
zone.
If you specify a dateTime value in a query, you
can filter on dateTime fields only.
|
double | Double values. Fields of this type can contain fractional portions
(digits to the right of the decimal place), such as ConversionRate in CurrencyType. In the API,
all non-integer values (such as Currency Field Type and Percent Field Type) contain values of type double. Some restrictions may be applied
to double values:
The maximum number of digits to the left of the decimal place
is equal to precision minus scale. In the online application, precision is defined differently—it
is the maximum number of digits allowed to the left of the decimal
place.
Values can be stored
in scientific notation if the number is large enough (or, for negative
numbers, small enough), as indicated by the W3C XML Schema Part 2: Datatypes Second Edition
specification.
|
int | Fields of this type contain numbers with no fractional portion (digits to the right of a decimal place), such as the NumberOfEmployees in an Account. For integer fields, the digits field specifies the maximum number of digits that an integer can have. |
string | Character strings. Fields that are of data type string contain text and some have length
restrictions depending on the data being stored. For example, in the Contact object, the FirstName field is 40 characters,
the LastName field is 80 characters, the MailingStreet is 255 characters. |
time | Time values. Fields of this type handle time values, such as FridayEndTime in the BusinessHours object.
Development
tools differ in the way that they handle time data. Some development
tools report the local time, while others report only the Coordinated
Universal Time (UTC) time zone. To determine how your development
tool handles time values, refer to its documentation.
|
This blog really helped me to understand the basics of Salesforce.
ReplyDelete