Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 93: Loading last object from a data table using API
April 11, 2015 by markpiller
Spread the love

In my previous post I wrote how to load the first object from a data table using API. For the symmetry (and out of common sense) there is also API to load the last object from a data table. The last object is determined by the time when it is saved in the data storage. The most recently created (notice it is not the updated one) object is what the API returns.

The sample code below works with the same table as the example for finding first object.

Asynchronous API sample (Android and Plain Java):

Synchronous API sample (Plain Java only):

Share this post
Tweet about this on TwitterShare on FacebookGoogle+