A domain represents the data type used in the Consumer Goods Cloud offline mobile app.
When you create a picklist in an org for use in the offline mobile app, create a domain
representing this picklist in the Domain Contract. Configure the picklist mapping between the
picklist and the Domain in the Salesforce org. The data types are transformed to domain records
after the sync with the offline mobile app.
Required Editions
Available in: Enterprise, Performance, and Unlimited Editions
The Domain contract contains information about the domains used in the CG Cloud offline
mobile app. Use the domain information to define the simple properties in business objects and
list objects, and in declarations in processes. The Domains.xml file
resides in $workspace/contracts/SharedWebData.
There are several predefined domains available in Domains.xml that you can use when
customizing contracts. For example: DomText, DomLanguage, DomBpaCustomerNumber, DomPKey, and
DomBool. You can even reuse domains, for example - use of customer number (string) for an
account and an order. Create domains to suit the requirements of your business.
Use the DomainRepository root to define the details of a domain in the Domain contract. This
table lists the elements of DomainRepository.
Attribute
Description
Value/Pattern
Required
name
Specifies the unique name of the domain. Uses the prefix Dom in the name. For
example, DomText.
String
Yes
baseType
Specifies the data type of the domain. For information about the data types
supported in the Consumer Goods Cloud offline mobile app, see Create Data Type.
Toggle. Toggle is shown as a list of values.
String
Boolean
Decimal
Yes
length
Specifies the data column length. The maximum length of the toggle code that is
saved to the database is 16.
Integer
Yes
Initializer
Use Initializer to define the default value for the domain or empty
value.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.