Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
stevenh-ACM opened this issue May 20, 2024 · 2 comments

Comments

@stevenh-ACM
Copy link

stevenh-ACM commented May 20, 2024

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.

@stevenh-ACM stevenh-ACM pinned this issue May 20, 2024
@dnaumov
Copy link
Contributor

dnaumov commented Sep 20, 2024

Fixed in version 5.2.0

@dnaumov dnaumov closed this as completed Sep 20, 2024
@stevenh-ACM
Copy link
Author

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants