dw.system
Class System
Object
dw.system.System
Represents the Commerce Cloud Digital server instance. An application server instance is configured to be of one of three types, "development system", "staging system" or "production system".
Constants
DEVELOPMENT_SYSTEM  :  Number = 0
Represents the development system.
PRODUCTION_SYSTEM  :  Number = 2
Represents the production system.
STAGING_SYSTEM  :  Number = 1
Represents the staging system.
Properties
calendar  :  Calendar  (Read Only)
A new Calendar object in the time zone of the current instance.
compatibilityMode  :  Number  (Read Only)
The compatibility mode of the custom code version that is currently active. The compatibility mode is returned as a number, e.g. compatibility mode "15.5" is returned as 1505.
instanceHostname  :  String  (Read Only)
Returns instance hostname.
instanceTimeZone  :  String  (Read Only)
The instance time zone. The instance time zone is the time zone in which global actions like jobs or reporting are specified in the system. Keep in mind that the instance time zone is cached at the current session. Changes will affect only new sessions.
instanceType  :  Number  (Read Only)
The type of the instance. An application server instance is configured to be of one of three types, "development system", "staging system" or "production system".
This method returns a constant representing the instance type of this application server.
preferences  :  OrganizationPreferences  (Read Only)
This method returns a container of all global preferences of this organization (instance).
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static getCalendar() : Calendar
Returns a new Calendar object in the time zone of the current instance.
static getCompatibilityMode() : Number
Returns the compatibility mode of the custom code version that is currently active.
static getInstanceHostname() : String
Returns instance hostname.
static getInstanceTimeZone() : String
Returns the instance time zone.
static getInstanceType() : Number
Returns the type of the instance.
static getPreferences() : OrganizationPreferences
This method returns a container of all global preferences of this organization (instance).
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.

Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβ€”passing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβ€”this is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?

This isn't just another prep courseβ€”it's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.

The Salesforce B2C Commerce Architect certification is a whole different gameβ€”complex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Method Detail
getCalendar
static getCalendar() : Calendar
Returns a new Calendar object in the time zone of the current instance.
Returns:
a Calendar object in the time zone of the instance.

getCompatibilityMode
static getCompatibilityMode() : Number
Returns the compatibility mode of the custom code version that is currently active. The compatibility mode is returned as a number, e.g. compatibility mode "15.5" is returned as 1505.
Returns:
The currently active compatibility mode.

getInstanceHostname
static getInstanceHostname() : String
Returns instance hostname.
Returns:
instance hostname.

getInstanceTimeZone
static getInstanceTimeZone() : String
Returns the instance time zone. The instance time zone is the time zone in which global actions like jobs or reporting are specified in the system. Keep in mind that the instance time zone is cached at the current session. Changes will affect only new sessions.
Returns:
the instance time zone.

getInstanceType
static getInstanceType() : Number
Returns the type of the instance. An application server instance is configured to be of one of three types, "development system", "staging system" or "production system".
This method returns a constant representing the instance type of this application server.
Returns:
the instance type of the application server where this method was called.

getPreferences
static getPreferences() : OrganizationPreferences
This method returns a container of all global preferences of this organization (instance).
Returns:
a preferences object containing all global system and custom preferences of this instance

β™₯
Notifications pending to read