SOAPType Enum

A Schema.SOAPType enum value is returned by the field describe result getSoapType method.

Schema

Type Field ValueWhat the Field Object Contains
anytypeAny value of the following types: String, Boolean, Integer, Double, ID, Date or DateTime.
base64binaryBase64-encoded arbitrary binary data (of type base64Binary)
BooleanBoolean (true or false) values
DateDate values
DateTimeDateTime values
DoubleDouble values
IDPrimary key field for an object
IntegerInteger values
StringString values
TimeTime values

To programmatically retrieve the list of valid SOAPType enum values, use this code sample.

For more information, see SOAPTypes in the SOAP API Developer Guide. For more information about the methods shared by all enums, see Enum Methods.