Loading

Sortby for Get Offers By Catalog from an Integration Procedure

Fecha de publicación: May 3, 2024
Descripción

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).
---

Solución
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
Número del artículo de conocimiento

000795006

 
Cargando
Salesforce Help | Article