ข้ามไปยังเนื้อหาหลัก

Can you pull exceptions for custom-built rules via the MyGeotab SDK?

FleetNavSystems-1081
ผู้โพสต์ต้นฉบับ

Hey Everybody,

 

I'm trying to help an integrator out on this, and they seem to think that you can't pull exceptions from custom-built rules via the MyGeotab APIs.

 

I haven't really worked with this part of the SDK much at all, so was hoping someone who uses this more could chime in on whether that is actually the case, or if we're just missing something here. My guess is that it should be possible to pull these exceptions via the rule's unique ID.

 

Thanks in advance for your help! :)

 

Best,

Joy @FleetNavSystems-1081

เข้าร่วมการสนทนา

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

คำตอบที่ดีที่สุด

Of course you can! If you go Get typeName Rule you will get all rules (Stock, Custom, ZoneStop) and you can retrieve your Rule id there, if if you already know the rule ID you can skip this part.

If you just Get typeName ExceptionEvent it will include exceptions from any rule (including Custom ones), but you can add a ruleSearch: { id: 'yourcustomruleid' } and that will return only the ones from your super custom rule. yourcustomruleid will be a GUID that is alpha-numeric and might include dashes and underscores. It is case-sensitive and unique across your database.

9 การตอบกลับ

Of course you can! If you go Get typeName Rule you will get all rules (Stock, Custom, ZoneStop) and you can retrieve your Rule id there, if if you already know the rule ID you can skip this part.

If you just Get typeName ExceptionEvent it will include exceptions from any rule (including Custom ones), but you can add a ruleSearch: { id: 'yourcustomruleid' } and that will return only the ones from your super custom rule. yourcustomruleid will be a GUID that is alpha-numeric and might include dashes and underscores. It is case-sensitive and unique across your database.

FleetNavSystems-1081
ผู้โพสต์ต้นฉบับ

I was thinking this should be the case. Thanks so much, @LPPapillon-1145​! 😎

 

harry-potter-mcgonnagall-clap

Genevieve-1051
ผู้ดูแลชุมชน

I'm not a huge basketball fan, but I feel like I just read D Wade setting Lebron up with a score > https://www.youtube.com/watch?v=u-_VrboErkg 😆

 

Joy perfectly asks a question (includes details, etc.) and LP jumps in with the answer real fast. lol

FleetNavSystems-1081
ผู้โพสต์ต้นฉบับ

😂

 

I didn't know this was a thing in the sportsball realm, but I appreciate the analogy (and cool video)!

Genevieve-1051
ผู้ดูแลชุมชน

I do not watch sports, but I grew up in a very sporty family (even my grandma is a HUGE Football/Baseball fan), So I've unwillingly absorbed a lot of sports knowledge over the years.

 

Think myself and my 7-year-old niece are the only members of the family who don't live and breathe football, basketball, hockey, or baseball.

FleetNavSystems-1081
ผู้โพสต์ต้นฉบับ

I read Quidditch Through the Ages once. Does that count? 😂

Genevieve-1051
ผู้ดูแลชุมชน

Of course, give technology a little time and I see it being added to the Olympics. 😆

FleetNavSystems-1081
ผู้โพสต์ต้นฉบับ

When that happens, it was very nice knowing you all. 😂😅

Genevieve-1051
ผู้ดูแลชุมชน

No, don't forget us little people when you're a famous Olympian LOL

 

Remember your Insider family 💙

ยังมีคำถามอีกไหม