Skip to content

URL request generated using SalesOrderAPI doesn't add the TOP parameter when specified. #55

Description

@stevenh-ACM

Writing a demo app where I am using the TOP parm to limit return sets. After setting it and seeing no difference, I retrieved the request using the Interceptor and the parm is not in the composed URL. The other items are but not the TOP parm.

Correct URL request:
https://acu-demos.us/acumaticaerp/entity/Default/22.200.001/salesorder?$select=OrderType,OrderNbr,Status,Date,Shipments/ShipmentDate,CustomerID,OrderedQty,OrderTotal,CurrencyID, LastModified&$filter=Date gt datetimeoffset'2024-02-01T00:00:00' and Date le datetimeoffset'2024-05-19T00:00:00' and OrderType eq 'SO'&$expand=Shipments&$custom=&$skip=0&$top=5

Composed by SalesOrderAPI:
https://acu-demos.us/acumaticaerp/entity/Default/22.200.001/salesorder?$select=OrderType,OrderNbr,Status,Date,Shipments/ShipmentDate,CustomerID,OrderedQty,OrderTotal,CurrencyID, LastModified&$filter=Date gt datetimeoffset'2024-02-01T00:00:00' and Date le datetimeoffset'2024-05-19T00:00:00' and OrderType eq 'SO'&$expand=Shipments

Note that $top=5 is not in the request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions