Newer Version Available

This content describes an older version of this product. View Latest

SOAPType Enum

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

Namespace

Schema

Type Field Value What the Field Object Contains
anytype Any value of the following types: String, Boolean, Integer, Double, ID, Date or DateTime.
base64binary Base64-encoded arbitrary binary data (of type base64Binary)
Boolean Boolean (true or false) values
Date Date values
DateTime DateTime values
Double Double values
ID Primary key field for an object
Integer Integer values
String String values
Time Time values

Usage

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

1system.debug(SoapType.values().size()); //Gets the number of supported values
2for (SoapType st : SoapType.values()) system.debug(st);

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