Przejdź do głównej zawartości

Web request on rules in MyGeotab

Slecl-1273
Oryginalny plakat

Hi,

In mygeotab, I would like to create a rule that the notification will be "web request" to call another software API.

 

I would like to know what data geotab will send to the API url? Does goetab will send the vehiculeid, driver, locations etc...

 

Thank!

Dołącz do rozmowy

Aby odpowiedzieć na ten post i uczestniczyć w dyskusjach społeczności Geotab, musisz być zalogowany.

Najlepsze odpowiedzi

Hi Slec_989,

 

Your Exception rule can be configured to utilize a Notification Template. The web request functionality can be pre-configured to include a vast amount of information. Once you set up the template, you can include it into the exception rule and every time it triggers it will send the webrequest URL to your 3rd party API with all info specified in the template. To set up this template, you can:

  1. navigate to rules --> notification Templates --> "Add Web Template" (tab on top of page)
  2. Here you will see that you have the following tokens available:

 

{Address} The street address at time the exception occurred

{Database} The database for this device

{Date} The date the exception occurred

{Device} The name and serial number of the device that triggered the exception

{Device Comments} The comment field for the device

{Device Groups} The groups to which the device belongs

{Device ID} The identifier for the device

{Device With Driver Name} The device and driver name

{Diagnostic} The diagnostic names and values associated with the exception

{Diagnostic code} The diagnostic code associated with the exception

{Driver Comment} The driver's comments

{Driver First Name} The first name of the driver

{Driver Groups} The groups to which the driver belongs

{Driver Last Name} The last name of the driver

{Driver Name} The name of the driver

{DVIR defect} The vehicle's DVIR defects when the exception occurred

{Latitude} The latitude where the exception occurred

{Longitude} The longitude where the exception occurred

{Odometer} The odometer value of the device

{Rule} The exception rule that was broken

{Serial number} The device serial number

{Speed} The max speed of the vehicle during the exception

{Speed limit} The speed limit when the exception occurred

{Time} The time the exception occurred

{Timezone} The timezone for the exception date and time

{Vin} The vehicle's identification number

{Zone} The name of the zone in which the vehicle was located at the time of the exception

{Zone Comment} The comment for the zone in which the vehicle was located at the time of the exception

{Zone ID} The identifier for the zone in which the vehicle was located at the time of the exception

{Map} The map view of the location where the exception occurred

 

In here you can select the tokens you want, in whichever format/order you desire. For more details around minute 13 of this video this process is detail-fully outlined and should help you in setting up this customized template that can then be used in any rule you set up.

 

I hope this helps! Do let us know if you have any further questions or require further assistance.

 

Regards,

 

Alej

1 Odpowiedź

Hi Slec_989,

 

Your Exception rule can be configured to utilize a Notification Template. The web request functionality can be pre-configured to include a vast amount of information. Once you set up the template, you can include it into the exception rule and every time it triggers it will send the webrequest URL to your 3rd party API with all info specified in the template. To set up this template, you can:

  1. navigate to rules --> notification Templates --> "Add Web Template" (tab on top of page)
  2. Here you will see that you have the following tokens available:

 

{Address} The street address at time the exception occurred

{Database} The database for this device

{Date} The date the exception occurred

{Device} The name and serial number of the device that triggered the exception

{Device Comments} The comment field for the device

{Device Groups} The groups to which the device belongs

{Device ID} The identifier for the device

{Device With Driver Name} The device and driver name

{Diagnostic} The diagnostic names and values associated with the exception

{Diagnostic code} The diagnostic code associated with the exception

{Driver Comment} The driver's comments

{Driver First Name} The first name of the driver

{Driver Groups} The groups to which the driver belongs

{Driver Last Name} The last name of the driver

{Driver Name} The name of the driver

{DVIR defect} The vehicle's DVIR defects when the exception occurred

{Latitude} The latitude where the exception occurred

{Longitude} The longitude where the exception occurred

{Odometer} The odometer value of the device

{Rule} The exception rule that was broken

{Serial number} The device serial number

{Speed} The max speed of the vehicle during the exception

{Speed limit} The speed limit when the exception occurred

{Time} The time the exception occurred

{Timezone} The timezone for the exception date and time

{Vin} The vehicle's identification number

{Zone} The name of the zone in which the vehicle was located at the time of the exception

{Zone Comment} The comment for the zone in which the vehicle was located at the time of the exception

{Zone ID} The identifier for the zone in which the vehicle was located at the time of the exception

{Map} The map view of the location where the exception occurred

 

In here you can select the tokens you want, in whichever format/order you desire. For more details around minute 13 of this video this process is detail-fully outlined and should help you in setting up this customized template that can then be used in any rule you set up.

 

I hope this helps! Do let us know if you have any further questions or require further assistance.

 

Regards,

 

Alej

Nadal masz pytania?