function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Fran KorbFran Korb 

B2B API order by sequene

Which B2B Commerce Global API input parameter or function should I use to retrieve a list of products, ordered by sequence?

I am using version 4.10 of the API
    outputData = ccrz.ccAPIProduct.find(inputData);
where inputData is:
Map<String, Object> initialData = new Map<String, Object> { ccrz.ccApi.API_VERSION => ccrz.ccApi.CURRENT_VERSION, ccrz.ccAPIProduct.PARAM_INCLUDE_PRICING => true, ccrz.ccAPIProduct.PRODUCT_LIMIT => pageSize, ccrz.ccAPIProduct.INCLUDE_COUNT => true, ccrz.ccApi.SIZING => new Map<String, Object> {ccrz.ccAPIProduct.ENTITYNAME => new Map<String, Object>{ccrz.ccApi.SZ_DATA => ccrz.ccApi.SZ_XL}} };
initialData.put(ccrz.ccAPIProduct.PRODUCTSTOREFRONT, storeFont);
initialData.put(ccrz.ccService.ORDERBY, ccrz.ccAPIProductIndex.BY_NAME);