delete values from stream
Hello Experts
I need to delete a range of data from a Stream.
How do I go about doing this? It is only for one things values though.
Help..
Hello Experts
I need to delete a range of data from a Stream.
How do I go about doing this? It is only for one things values though.
Help..
Excellent. Here is the working code:
var params = {
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
sourceTags: undefined /* TAGS */,
endDate: endDate /* DATETIME */,
query: undefined /* QUERY */,
source: source /* STRING */,
startDate: startDate /* DATETIME */,
tags: undefined /* TAGS */
};
// result: INFOTABLE
var result = Things["ApexReadingsStream"].QueryStreamEntriesWithData(params);
var stream = Things["ApexReadingsStream"];
for each(entry in result.rows) {
stream.DeleteStreamEntry({ streamEntryId: entry.id });
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.