Skip to main content
Solved

Through web api not able get vendor order by LastModifiedDateTime.

  • July 31, 2023
  • 2 replies
  • 227 views

Forum|alt.badge.img

Through web api not able get vendor order by LastModifiedDateTime.

Best answer by Leonardo Justiniano

Hi @DharmandarKumar 

 

You can leverage using OData V4 which allows you to set OData filtering and sorting clauses:

https://<site>/odatav4/<instance>/Vendor?$skip=0&$top=10&$orderby=LastModifiedDateTime desc

 

2 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • July 31, 2023

Hi @DharmandarKumar 

The API result set returned by the data view is always sorted by the 'OrderBy' clause specified in the type of the data view object.

If you wish to sort the data differently, you can create a simple Generic Inquiry (GI) with the desired sort order. Then, create a custom endpoint for the GI and use a GET call. This way, you will receive the data according to your specific request and sorting preference."


Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

Hi @DharmandarKumar 

 

You can leverage using OData V4 which allows you to set OData filtering and sorting clauses:

https://<site>/odatav4/<instance>/Vendor?$skip=0&$top=10&$orderby=LastModifiedDateTime desc