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
Knowledge 기사 번호

000795006

 
로드 중
Salesforce Help | Article