OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce JSON.API: get Max Value

This topic contains 3 replies, has 2 voices, and was last updated by  alexandre.pinheiro-da-silva 6 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #32284

    Hello, is there a way to do a “max-value” operation with a filter.
    For example:

    -Give me the product with the highest “updatedAt”-

    Many thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #32285

    Resolved

    #32286

    acaliman
    Participant

    Hi Alexandre,

    Maybe you could share the solution here to be of help for other users as well :)

    Thanks!
    Adrian

    #32287

    Hi Adrian,
    it’s a pretty easy solution.

    We did it with page[size] and sort:

    GET /commerce/web/admin/api/products?page[number]=1&sort=updatedAt

    That’s the trick ;)

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top