Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 605 Bytes

File metadata and controls

26 lines (19 loc) · 605 Bytes

Import Devices

Import devices from a CSV file.

Steps:

  1. Authenticate via the Geotab API.
  2. Load the CSV file.
  3. Import devices into the database.

The included CSV is a sample — update serial numbers and group names as needed.

CSV layout

# ImportDevices.csv
# Structure: <description>, <serialNumber>, <group1|group2>
# lines beginning with '#' are comments and ignored
Vehicle 1,GT-810-000-0001,Company Group
Vehicle 2,GT-820-000-0002,Company Group

Run

mvn exec:java -Dapp=importDevices -DfilePath=src/main/java/com/geotab/sdk/importdevices/ImportDevices.csv