Home/Support/Support Forum/How can last 50 datapoints be pulled from datapoint query?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How can last 50 datapoints be pulled from datapoint query?

0 votes
Tried using :

http://my.idigi.com/ws/DataPoint/dia/channel/00000000-00000000-00409DFF-FF4537BA/XBee_408A8A7B/AD1?condition=serverTimestampISO>'272015-08-30T20:46:56.927Z'

but I get all the records. I have used conditions in the past, but they don't seem to be working now. Just trying to get the last 50 records.
asked Sep 1, 2015 in Data Services by steveb New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

+1 vote
The following syntax should give you the desired results:

https://login.etherios.com/ws/DataPoint/dia/channel/00000000-00000000-00409DFF-FF4537BA/XBee_408A8A7B/AD1/?order=desc&size=50
answered Sep 1, 2015 by userid0 Veteran of the Digi Community (2,156 points)
Big thanks userid0 that worked.  Figured this out after I posted the question.  Like the startTime parameter, it's not clear when to quote text in a condition...at least to me anyway.
...