dw.util
Class MappingMgr

Used to manage and interface with mappings loaded into the system via the ImportKeyValueMapping job step. Class can be
used to retrieve values for known keys, iterate over all keys known in a mapping or list all known mappings.
Mappings are read into the system using the ImportKeyValueMapping job step.
Generic mapping capability enables you to map keys to values, with the mapping stored in a high-performance data store that is independent of the database. This supports large datasets, with high performance for lookup. An example of using this feature is to map SKUs from a backend system to Commerce Cloud Digital SKUs on-the-fly in Digital script, so that interaction with the backend system is transparent and does not require adding Digital SKUs to the third party system.
Properties
mappingNames
:
Collection
(Read Only)
List all known mappings.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static get(mappingName
:
String, key
:
MappingKey)
:
Map
Returns a map containing value(s) associated to the specified key for the specified mapping.
static getFirst(mappingName
:
String, key
:
MappingKey)
:
String
Gets the first string value of a mapping by name and key.
static getMappingNames()
:
Collection
List all known mappings.
static keyIterator(mappingName
:
String)
:
SeekableIterator
Key iterator over known mapping keys by mapping name.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
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.
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.
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.
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
get
Returns a map containing value(s) associated to the specified key for the specified mapping.
Parameters:
mappingName
-
the mapping name
key
-
the key
Throws:
IllegalArgumentException
-
if mappingName is unknown
getFirst
Gets the first string value of a mapping by name and key. Ordering is determined by the input CSV file. Throws an
exception if mappingName does not exist.
Parameters:
mappingName
-
the mapping name
key
-
the key
Returns:
the value if a single value. The first value sequentially if a compound value.
Throws:
IllegalArgumentException
-
if mappingName is unknown
getMappingNames
static getMappingNames()
:
Collection
List all known mappings.
Returns:
the collection of mapping names