Skip to main content
Solved

Through web api not able get vendor order by LastModifiedDateTime.

  • Jul 31, 2023 8:24 AM UTC
  • 2 replies
  • 313 views
  • Translate All

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

 

View original

2 replies

jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • Jul 31, 2023 9:05 AM UTC

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."

Translate

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

 

Translate