function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nitish Singh 22Nitish Singh 22 

Response Sequence of Knowlege Articles when using Custom REST API and native REST API are different

Hi All , 

I am using the followng SOSL query to get required KB articles from SF  :

FIND { How AND can AND I pay AND my AND invoice?} IN ALL FIELDS RETURNING WKArticleType__kav(Id,Title, CreatedDate, LastModifiedDate, Details__c, UrlName,Topic__C, Input_Method__c WHERE PublishStatus='Online' AND language ='en_US'offset 0)

I have a custom REST API which internally uses this SOSL query . This works fine and i am able to get desired results.

Now when i invoke this SOSL query from WORKBENCH the sequence of articles in response differ from that when i invoke the custom REST API . Even thpugh the custom API uses the same query internally

when i invoke this from WORBENCH