Good day,
By using RetrieveMultileRecords function in Javascript, can we sort the record first and get the top 5 or 10 and specify ascending or descending ?
Regards,,
Hi, any news ?
Hi,
Yes, it is feasible. Please refer to the example below:
Xrm.WebApi.retrieveMultipleRecords('contact', "?$orderby=emailaddress1 asc&$top=10").then( function success(result) { console.log(result) }, function (error) { console.log(error.message); // handle error conditions } );
This example allows you to search for the first 10 contacts by applying an order to their email address in an ascending way.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156