Loading

Sortby for Get Offers By Catalog from an Integration Procedure

Veröffentlichungsdatum: May 3, 2024
Beschreibung

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

Lösung
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
Nummer des Knowledge-Artikels

000795006

 
Laden
Salesforce Help | Article