Thursday, January 16, 2025

How to get total record count and Top 10 records from D365 Odata GET URL.

How to get total record count, Top 10 records from D365 Odata URL.

Get Total Record count by Odata URL.

1. To retrieve the total record count, we need to use the $count=true keyword in the URL.
{{resource}}/data/VendorGroups?Cross-company=true&$count=true


Get Top 3 records by Odata URL.

1. To retrieve the top 3 records, We need to use $top=3 keyword in the URL.
{{resource}}/data/VendorGroups?Cross-company=true&$top=3

Keep Daxing!!