When querying StatusData using Get call with a DiagnosticSearch.Id, I get results for the specified Diagnostic Id. But when setting DiagnosticSearch.Ids as an array of Diagnostic Ids, I get no results.
Does the support of DiagnosticSearch.Ids is working ? I want to retreive multiple kind of StatusData in a single call.
Using C# API:
// This is returning valid data
new StatusDataSearch()
{
DeviceSearch = new DeviceSearch() { Id = Id.Create("b1A") },
DiagnosticSearch = new DiagnosticSearch()
{
Id = KnownId.DiagnosticOdometerId
},
FromDate = new DateTime(2025, 1, 1),
ToDate = new DateTime(2025, 1, 31)
}
// Always return no result
new StatusDataSearch()
{
DeviceSearch = new DeviceSearch() { Id = Id.Create("b1A") },
DiagnosticSearch = new DiagnosticSearch()
{
Ids = new Id[] { KnownId.DiagnosticOdometerId, KnownId.IoxWrksRoadTemperature }
},
FromDate = new DateTime(2025, 1, 1),
ToDate = new DateTime(2025, 1, 31)
}
This is pretty typical for sub-search objects. Most only support the "Id" property, even if the object itself has other properties that you could use when it is the primary search.