Preskočiť na hlavný obsah

MyGeotab SDK Filter Exception Event Search on an array of ruleIds

DBene-1858
Pôvodný plagát

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)

Zapojte sa do konverzácie

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

Najlepšie odpovede

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

1 Odpovedať

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

Stále máte otázky?