Skip to main content

Lex VOR Action Information Export

Introduction

An Export that consists of the information relative to the enquiries/vehicles that are off road.

Purpose

Lex have an export that provides information related to vehicles that are off road. This export needs to be generated by ViSN to ensure continuity in terms of process. This export will be a delta report consisting of detailed information relative to the action that is recorded against a job (enquiry) and enabling lex to monitor the progress of vehicles that are off the road."

File format

Comma Separated Values - *.csv

Terminology

  • Action : The Follow up status recorded on VOR in ViSN is referred to as 'Action' by Lex
  • Delta : Lex categorised this export as delta export as it is a detailed report
  • Incident Type : The occurrence of an action against a enquiry is incident and the follow up status type on the action shall be treated as incident type. Further the incident type is recorded in exports with lex specific codes
Column NameDescriptionData / FormatMax LengthMandatory
1Record Type IndicatorType of record, must be "VIH"string3Y
2Record Version NumberMust be "1"number1Y
3Batch Number0000001, 9999999number7Y
  • Batch Integer is a unique batch number/ integer, it will be a sequential number reflecting export number. So first new VOR Action export report will start from 0000001

  • location :/leasecompany/[leaseId]/exports/settings

  • value : vorActionInformationExportBatchNo

  • preview :


Records

S.NoColumn NameDescriptionTypelengthMandatoryExample
1Record Type Indicatorhas fixed valuestring3YMust be “VIR”
2VOR IDEnquiry Number in ViSNnumberN
  • Although this field is of type varchar, enquiry number of type integer is recorded
  • If an enquiry is moved or reassigned to another supplier, same enquiry number shall be used for both of enquiries
  • On a given day if multiple actions recorded against the enquiry the records shall be batched with the enquiry number
3Registration NumberVRMstring15NAS12DON
4Site IDCustomer Supplier IDnumber15N
5Site_NameSupplier Site Namestring50NGROUP 1 BOLTON
6Date Fromdate inputted on VOR details calendar, put the time as the time manual vor enquiry was created.datetimeNDD/MM/YYYY HH:MM
7Date Tovor closuredatetimeNDD/MM/YYYY HH:MM
  • Date and time when enquiry progressed to completed status or 'Vehicle Completed' is chosen as follow up status
  • date shall be formatted to dd-MM-yyyy hh:mm and will be in 24hr format
  • the field will be left blank for the enquiries that are not completed on the date of export
8Driver Namedriver full name recorded while creating an enquirystring50NGeorge Leo
  • The field will be left blank if no driver information is provided when creating an enquiry
9Category IDIncident type reference of selected statusnumberN
10Category NameVOR Notes “Status”string50NAccident Collision Incident
11MakeCustomer Contract Drawer: Makestring50NBMW
12ModelCustomer Contract Drawer: Modelstring50NX1
13DerivativeCustomer Contract Drawer: Specificationstring50N
14Odometer ReadingEnquiry: MileagenumberN24500
15Driver AddressLeave blank as not available from ViSN --N-
16Driver SMSdriver's phone numberstring20N0127845899
17Driver Tel NoLeave blank as not available from ViSN --N-
18Driver EmailManual Repair VOR or Booking Driver Details: Emailstring80Ninfo@digitalinnk.com
19Booking IDenquiryNumbernumberN5090
20Date Createdvehicle checked-In date and timedatetimeNDD/MM/YYYY HH:MM
  • date shall be formatted to dd-MM-yyyy hh:mm and will be in 24hr format
21Created By User IDLeave blank as not available from ViSN--N-
22Created by User NameEnquiry created by (customer) user name (Manual VOR) For Auto and Active VOR - leave blankstring50NChris Cook
23Customer Account NumberCustomer Contract Drawer: Customer Account Numberstring20N
24Scheme IDLeave blank as not available from ViSN--N
25Fleet Card NumberLeave blank as not available from ViSN --N
26Vor NotesNotes added in VOR notes drawerstring1024N
  • Comments entered at time of enquiry creation or Notes added in VOR notes drawer
  • If a user enters special characters such as commas(,), double quotes("), or single quotes(`) in a comment, the comment will be surrounded by quotation marks marking the start and end of the data in the field of csv
27Fleet Operator Account IDDI Admin: Customer Account NumbernumberN
28Estimated Available Date/Timedate when the action is expected to be accomplished and vehicle will be availabledatetimeNDD/MM/YYYY HH:MM
29Chassis/Vin NumberCustomer Contract Drawer: VIMstring20NVD7YE2MFC12K57805
30Your RefLeave blank as not available from ViSN--N-
31Service Centre Group NameSupplier Group Namestring50NBellinger & Sons Vauxhall Wantage
32Vehicle TypeCustomer Contract Drawer: Vehicle Type. Vehicle Type in ViSN needs to be mapped to corresponding text code for export, but can be left blank.string1N

“C” = Car

“V” = LCV

“H” = HGV

“P” = Plant/Other

Column NameDescriptionData / FormatMax LengthMandatory
1Record Type IndicatorType of record, must be "VIT"string3Y
2Record Version NumberMust be "1"number1Y
3VIR Line CountNumber of "VIR" lines in filenumber6Y

Data source

At the time of adding the vor note to the enquiry, a record consisting of export relative information is created at location

/leasecompany/[leaseId]/exports/vorActions/[year]/[month]/[date]/[enquiryId]

Setup Required

Database Configuration

This export is targeted for Lex lease companies alone, Hence storing these records for other companies is not required.

To prevent the records generated for non-Lex customers, A flag needs to be enabled in the lease company's export configuration to restrict the data export to Lex customers only

location: /leasecompany/[leaseId]/config/exportsConfig
attribute: vorActionExport
value: true

Generate Export

A Scheduler should be created cloud scheduler with the following parameters

  • Name : Lex-GenerateDailyVorActionInformationExportCSV
  • Description : Daily VOR Action Information Export Generation For Lex
  • Region : europe-west2
  • Frequency : 30 23 * * *
  • TimeZone : Greenwhich Mean Time (GMT)
  • Topic : projects/biddirect-2/topics/generateDailyVorActionInformationExport
  • Message body : a JSON object including the following parameters
    • dateTimeStamp : in format yyyy-MMM-dd ex 2022-Sep-30 , when skipped it will default to current date
    • leaseId : id of the lease company that the export is desired to be generated for

Upload to SFTP

A Scheduler should be created cloud scheduler with the following parameters

  • Name : Lex-UploadDailyVorActionInformationExportToSFTP
  • Region : europe-west2
  • Frequency : 45 23 * * *
  • TimeZone : Greenwhich Mean Time (GMT)
  • Topic : projects/biddirect-2/topics/uploadFileToSFTP
  • Message body : a JSON object including the following parameters
    • sftpHostAddress : public hosting address of the sftp server
    • username : username for password authentication (ssh key not supported)
    • password : passkey for password authentication
    • bucketName : name of the firebase cloud storage
    • sourceFolderName : location in the firebase cloud storage to pick the file to copy to SFTP from
    • sourceFileName : regular expression that match to filename to pick file(s)
    • destinationFolderName : location in the sftp server
    • emailId : email id to receive the status in case of successful upload
    • errorEmailId : email id to receive the status in case of failed upload
    • emailSubject : generic subject that caters to both successful and failed uploads
Status: Accepted
Category: Protected
Authored By: Rama on 11 Sep, 2024
Revisions
11 Sep, 2024 - Create Documentation for vor action export, VN-14016
20 Nov, 2024 - Updated Documentation for vor action export, VN-14965 | 15004