Home/Support/Support Forum/How format http get request for datapoints with conditions?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How format http get request for datapoints with conditions?

0 votes
I am having trouble pulling individual datapoints using http get with conditions. Bottom line is the condition always evaluates to "true" and I get the whole stream contents. The size option works fine just not the condition option. Had success with this several years ago, but maybe I'm not holding my mouth right now.

Here's my query that I am entering in mozilla browser:


The following query for diachannelFull works fine with conditions.


Reread idigi docs a hundred times - at least.

Thanks, Steve

PS - maybe there's an easier way to find the last datapoints in a stream. Any suggestions would be appreciated.
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
You might want to try startTime and endTime. For example:

answered Sep 1, 2015 by userid0 Veteran of the Digi Community (2,158 points)
This worked fine....thanks!   I wish the idigi documentation was a little more clear with examples like when to put text in quotes.    

For example in the idigi documentation for "Get files based on conditions"  idigi shows the example:

GET /ws/FileData?condition=fdType='file' and fdLastModifiedDate>'2013-12-06T14:50:00.000Z'

You would think this same logic would apply to datapoints but it didn't work for me.

Thanks again!