Multiple orderby

Options

Hello, what's the best way (sintax) to have 2 or more order by in my query?

Example:

 

dataString='/data/v1/reserve?filter=Planner='+ pcFilter + '&orderby=PartNumber, LotNumber'

I currently have it only with the PartNumber, but I want to do it with those 2 fields.

 

Thanks in advance.

Best Answer

  • zcameron
    zcameron Contributor
    Answer ✓
    Options

    A comma separated list of fields is correct. You don't need the space, however. 

Answers

  • laura_igl
    Options

    Can anyone help with this request?

    Thanks,

  • zcameron
    zcameron Contributor
    Answer ✓
    Options

    A comma separated list of fields is correct. You don't need the space, however. 

  • MartinB
    Options

    Thanks. That worked fine.

This discussion has been closed.