QueryPropertyHistory Strange Behavior (Return no rows)
Hello,
I have a strange behavior of QueryPropertyHistory when i try to test it on thingworx services. Im a newbies so i may miss some core functionality of this function.
Here is my code:
var query = {
filters: {
type: "LIKE",
fieldName: "MSN",
value: MSN
}
};
// result: INFOTABLE dataShape: ""
var result = me.QueryPropertyHistory({
oldestFirst: OldestFirst /* BOOLEAN */,
maxItems: MaxItems /* NUMBER */,
endDate: EndDate /* DATETIME */,
query: query /* QUERY */,
startDate: StartDate /* DATETIME */
});
I try to fetch properties values from the thing used en second time to generate statistics:
the thing store data on valustream database.
Scenario:
1- I run this test (1.JPG)
As you can see there is rows returned ans there is data on the date 10/30/2019 : 5:30 pm.
2-Now let's do the same test but we change the start date to the current day
Result : (No data)
The first screenshot show that i have data in this date but when i filter the date i got no rows!
I have no explanation for this ?
Can you help me please.
Many thanks.

