Skip to main content

Get call on StatusData with DiagnosticSearch.Ids not returning any result.

JPerr-2086
Original Poster

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)

}

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Top Answers

To corroborate Eishi's answer, the documentation for StatusDataSearch notes specifically that the only supported property on the DiagnosticSearch is "Id":

 

image.pngThis 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.

3 Replies

EishiFUN
Geotabber

Hey @JPerr-2086​ ,

 

Thank you for asking your question in our community. I apologize for taking so long to respond to you on this. Let me talk with one of our developers and see if I can get some good advice for you.

 

I will let you know what I hear as soon as I do. Thank you fro your patience while we look into this. Feel free to reach out with any other questions you may have. We are happy to help.

 

Have a good one!

Eishi FUN

EishiFUN
Geotabber

I think we found what it is. I talked to one of our developers they told me: I believe the StatusSearch object only allows one vehicle, diagnostic search at a time per individual request*

they would need to send the relevant multiple diagnostics as multicalls (that's the best recommended approach here)

 

Let us know if you have any other questions!

To corroborate Eishi's answer, the documentation for StatusDataSearch notes specifically that the only supported property on the DiagnosticSearch is "Id":

 

image.pngThis 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.

Still have questions?