OrderSettings
Represents order settings.
In the package manifest, all organization settings metadata types are accessed using the Settings name. See Settings for details.
This type extends Metadata and inherits its fields.
There is one OrderSettings component in a file named Order.settings in the settings folder. The .settings files are different from other named components because there’s only one settings file for each settings component.
Introduced in API version 30.0.
- Type: boolean
- Required: No
- Introduced: API version 48.0
- Description: Indicates whether enhanced commerce orders are enabled for the org (
true) or not (false). This preference is available only in orgs with the Salesforce Order Management license. Default value isfalse.
-
Type: boolean
-
Required: No
-
Description: Indicates whether users in the org can add order products with quantities of less than zero (
true) or not (false).To enable this preference,
enableOrdersmust be set totrue.
- Type: boolean
- Required: No
- Description: Indicates whether users in the org can create orders without price books (
true) or not (false). For more information, see Enable Orders Without Price Books in Salesforce Help.
- Type: boolean
- Required: No
- Description: Indicates whether order events are enabled for the org (
true) or not(false). For more information, see OrderStatusChangedEvent in the Platform Events Developer Guide.
- Type: boolean
- Required: Yes
- Description: Indicates whether orders are enabled for the org (
true) or not (false).
-
Type: boolean
-
Required: No
-
Introduced: API version 60.0
-
Description: Indicates whether users in the org can create orders containing order items that refer to multiple price books (
true) or not (false). To enable this preference,enableOrdersandenableEnhancedCommerceOrdersmust be set totrue.This field helps to offer different pricing structures for various customer segments, regions, or promotional periods.
-
Type: boolean
-
Required: No
-
Description: Indicates whether reduction orders are enabled for the org (
true) or not (false). For more information, see Reduction Orders in Salesforce Help.To enable this preference,
enableOrdersmust be set totrue.
-
Type: boolean
-
Required: No
-
Introduced: API version 42.0
-
Description: Indicates whether users in the org can add order products with quantities of zero (
true) or not (false). Default value isfalse.To enable this preference,
enableOrdersmust be set totrue.
This is a sample OrderSettings component.
The following is an example package.xml that references the previous definition.
The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.