Ga naar hoofdinhoud

MyGeotab SDK Filter Exception Event Search on an array of ruleIds

DBene-1858
Oorspronkelijke plaatser

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)

Deelnemen aan het gesprek

Je moet ingelogd zijn om op dit bericht te reageren en deel te nemen aan de discussies in de Geotab Community.

Populaire antwoorden

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

1 antwoord

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

Heeft u nog vragen?