Avatar

How to include details with ExceptionEvents

1

I would like to have some of the structures filled in with details when I do a Get with type ExceptionEvent.  In the past (5.6) there was a flag like "includeDetails" that would fill in some of the data.  For example, in 5.7 I would like the Rule, Driver and Device to be populated in the ExceptionEvent record, instead of just the IDs. 

To get around it, for each ExceptionEvent I get, I have to make a separate call to Get for the Rule, Driver and Device.  Instead of 1 call, now it's 4.

Is there a flag that I am missing that would allow the details to populated along with the ExceptionEvent?

Thanks,
Stuart Fox

Stuart Fox

Please sign in to leave a comment.

4 comments

0
Avatar

Hi Stuart,

No, there is no such flag in 5.7. Nested entities will only have the ID populated. I suspect you may have been using an unsupported method for getting exception events in 5.6 which may have had these properties populated.

We refer to this model as our "Building Block" approach to the API. You can see a detailed explanation in the SDK documentation: https://my3.geotab.com/SDK/default.html#/concepts under "Building block approach". You will need to make 4 calls but you can avoid overhead of 4 separate calls by using a "Multicall". You can find a detailed description in the documentation using the same link under "Multicall".

Thanks,
Steve

Steve Hansen 0 votes
0
Avatar

Akshay,

The ExceptionEvent object will have a Rule property that has an Id populated (but nothing else initially). Using the generic Get<T> method you can get the full Rule object with this Id.

Thanks,

Nathan

Nathan Mascitelli 0 votes