Hi Folks
Despite years of running MYOB's APIs I have never been successful at getting any ODATA queries to work.
My APIs work - fine but if I need Sales Orders - I have to get them all and then sort.
It works but now this no longer is the best option especially when the download pages start heading towards over a 100.
"/Sale/Invoice/?$Filter=startswith(Number,'RPWeb')" - doesn't work
"/Sale/Invoice/Item/?$Filter=startswith(Number,'RPWeb')" doesn't work
"/Sale/Invoice/?$Filter=Date gt dateTime'2024-11-01'" - doesn't work
"/Sale/Invoice/Item/?$Filter=Date gt dateTime'2024-11-01'" - doesn't work
I can say I have never got ODATA queries working.
I use MSAccess - my API calls are not through MYOB's SDK but through my own code I have created from scratch - my apps work fine - but I end up downloading the entire payload.
Be interesting to see if the same occurs with a VB.NET or VC#.NET - I have test applications - but was wondering if someone can spot something obvious.
I know queries in ODATA are extremely finnicky - as they are in SQL - but ODATA seems to have beaten me.
I can no longer ignore this problem as I need to now download a selection of Sales Invoices after 1/11/24 else I end up with a ginormous download number of pages.
Interestingly - I don't get any errors - just ALL the invoices.
The Doc