Skip to main content
Solved

Through web api not able get vendor order by LastModifiedDateTime.


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
Did this topic help you find an answer to your question?

2 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • 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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings