Zum Hauptinhalt springen

MyGeotab SDK Filter Exception Event Search on an array of ruleIds

DBene-1858
Ersteller des Beitrags

Hey Guys,

 

We're trying to limit the amount of exception data requested for a given fleet in our solution and was wondering if there is way to filter exception event searches using a ruleId array. So something like this:

 

api.call("Get", { "typeName": "ExceptionEvent", "search" : { "fromDate": "2025-03-22T16:30:00.000Z", "toDate": "2025-03-22T18:00:00.000Z", "ruleSearch": { "id": ["aqCjVZJKxTEWVQ4tGfMDD_w", "RuleJackrabbitStartsId", "a5dUhU3z0Q0yI4DdmZPI3nQ", "adA08bZw-kUiSFflNEnikIw"], }, }, }, function(result) { console.log("Done: ", result); }, function(e) { console.error("Failed:", e); });

Not sure what is the proper way of achieving this as we're not looking to filter based on baseType or Groups but based on a set of ruleIds (that includes both custom and stock ruleIds)

An der Unterhaltung teilnehmen

Sie müssen angemeldet sein, um auf diesen Beitrag zu antworten und an den Diskussionen der Geotab Community teilzunehmen.

Top-Antworten

You'll want to do each rule in a multicall. Let me know if that's what you're looking for!

1 Antwort

You'll want to do each rule in a multicall. Let me know if that's what you're looking for!

Haben Sie noch Fragen?