Loading

Sortby for Get Offers By Catalog from an Integration Procedure

Дата публикации: May 3, 2024
Описание

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

Решение
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
Номер статьи базы знаний

000795006

 
Загрузка
Salesforce Help | Article