Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
DefaultResolveRefDateImplementation Class

DefaultResolveRefDateImplementation Class

Fetches the reference date at runtime with respect to a specified order, opportunity, quote, or line item. The reference date determines the correct version of products to be referenced from the cart.

Namespace

vlocity_cmt

Interface

ResolveRefDate Interface

Related Implementations

None

Usage

When Versioning is enabled, every order, opportunity, quote and line item is assigned a reference date. This reference date determines the correct version of products to be referenced from the cart.

For example, when a certain order is loaded, the selectables for that order must have the correct version as per the reference date of the order. Similarly, when a bundled product is added to a cart, all child items of that product must have the correct reference date with respect to the reference date of the root item.

The DefaultResolveReferenceDateImplementation class returns the reference date for a given order ID, opportunity ID, quote ID or line item ID. It can also process multiple Order IDs, Opportunity IDs, or Quote IDs by passing the set of IDs in the input parameters.

It is trigged in versioned orgs when any of the cart APIs fetches products at run time.

Methods

Method

Description

Returns the reference date for the specified cart ID or line item ID.

 
Loading
Salesforce Help | Article