Apex Reference Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Release Notes
CommerceOrders Namespace
Level Enum
Method Enum
Compression Exceptions
ExternalService Namespace
PlaceQuote Namespace
Slack Namespace
Newer Version Available
Compression Namespace (Developer Preview)
The Compression namespace provides classes and methods to create and extract zip
files.
Feature is available as a developer preview. Feature isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don’t implement functionality developed with these commands or tools in a production environment.
Note
The following are the classes and enums in the Compression namespace.
-
Level Enum
Specifies the compression level for creating a zip file. -
Method Enum
Specifies the compression method for the zip entries. -
ZipEntry Class
Contains methods to get and set information about a zip file entry. -
ZipReader Class
Contains methods to get information about zip entries and to extract content for specified zip entries from the zip file. -
ZipWriter Class
Contains methods to add zip entries, generate a zipped archive, and return the result as an Apex blob. -
Compression Exceptions
The Compression namespace contains exception classes.