Loading

Sortby for Get Offers By Catalog from an Integration Procedure

Date de publication: May 3, 2024
Description

Using the Get Offers By Catalog remote call from these help pages:
CPQnext: getOffersByCatalogCode
Legacy DC API: getOffersByCatalogCode

When using the sortby parameter as an Additional Input in a Remote Action, products are not being returned sorted.

On the help page for the rest API, it states by default that offers should be sorted by the sequence number:
---
sortby - string
Name of Catalog Product Relationship field to sort by. Defaults to Sequence (Catalog Product Relationship > Sequence Number).
---

Résolution
When using the CpqAppHandler apex class from an Integration Procedure, both the requestURL parameter and sortby parameter are required like so:
requestURL - /v3/catalogs/%catalogCode%/offers?sortby=vlocity_cmt__SequenceNumber__c_ASC
sortby - vlocity_cmt__SequenceNumber__c_ASC
Numéro d’article de la base de connaissances

000795006

 
Chargement
Salesforce Help | Article