ccrz.ccLogicOrderReOrder.refetch

Calls the ccrz.ccApiCart.fetch method for fetching the cart record after it's created.

Compatibility

This reference applies to:

Release Managed Package Version API Version
B2B Commerce for Visualforce Winter ’21 4.13 12
B2B Commerce for Visualforce Spring ’20 4.12 11
B2B Commerce for Visualforce Summer ’19 4.11 10
B2B Commerce for Visualforce Spring ’19 4.10 9
B2B Commerce for Visualforce Summer ’18 4.9 8

Signature

global virtual Map<String, Object> refetch(Map<String, Object>)

Inputs (Required)

This method accepts the working Map<String, Object> from the ccrz.ccLogicOrderReOrder.insertCartItems method.

This method requires the following keys in the working map:

ccrz.ccApi.SIZING
Map<String, Object> that specifies options for how the method returns data. For this method to execute, this key must include ccrz.ccApi.SZ_REFETCH => true for the ccrz.ccApiCart.ENTITYNAME:
ccrz.ccApi.SIZING => new Map<String, Object> {
    ccrz.ccApiCart.ENTITYNAME => new Map<String, Object> {
        ccrz.ccApi.SZ_REFETCH => true
    }
}

This method respects any other data size keys specified in the original input's ccrz.ccApi.SIZING key.

Note

ccrz.ccApi.SUCCESS
Boolean
Value Usage
true The previous method in the logic chain completed successfully. This method executes.
false This previous method in the logic chain failed. Execution skips this method, and continues to the next method in the logic chain.
ccrz.ccApiCart.CART_ID
String that specifies the Salesforce ID of the created cart.

Outputs

This method returns the working Map<String, Object>, and sets the following key:

ccrz.ccApiCart.CART_OBJLIST
List<Map<String, Object>>, where the Map<String, Object> represents the created ccrz__E_Cart__c record that the ccrz.ccApiCart.fetch method returned.