Acumatica Webservice上的总行数?

i'm working with acumatica 6.0 WebServices, i know how to get top by top inventory rows, but i donw know if exist some way to get the total rows number, and some way to get the last inventoryID too, i read the documentation of webservices but not exist some example like this.

some one could you help me with this logic? or the only way to get that number is creating a new screen with that info and explode it with webservice? Thanks for your help.

There is no option to get total number of records in Acumatica via the API. Since records are always returned by API in ascending order by key fields and there is no option to change default behavior, it doesn't seem possible to request only last record either.

Could you please provide additional details about your scenario? Do you really need to request number of all inventory items from Acumatica? How are you going to use this number further in your integration?