Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
SOAPType Enum
A Schema.SOAPType enum value is returned by the
field describe result getSoapType method.
Namespace
| 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.