Skip to main content

Lex VOR Action 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.

File format

Comma Separated Values - *.csv

Terminology

  • Action : The Follow up status recorded on VOR in ViSN is referred to as 'Action' by Lex
Column NameDescriptionData / FormatMax LengthMandatory
1Record Type IndicatorType of record, must be "VAH"string3Y
2Record Version NumberMust be "1"number1Y
3Batch Integer9999999number7Y
  • 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 : vorActionExportBatchNo

  • preview :


Records

Column NameDescriptionData / FormatMax LengthMandatory
1Record Type IndicatorType of record, must be "VAR"string3Y
2VOR IDEnquiry Number in ViSNnumber20N
3Registration NumberVRM in ViSN for the associated Enquiry Numberstring15N
4Driver NameDriver's full name recorded while creating an enquirystring50N (leave blank if unavailable)
5Driver Tel NoNot available in ViSN; leave blankstring20N (this field will always be blank)
6Driver EmailEmail from Manual Repair VOR or Booking Driver Detailsstring80N
7Action Type NameLATEST_ACTION_TYPEstring50N
4ACTION_CREATED_ONDate and time of the action recorded for VORDD/MM/YYYY HH:MMY
  • date and time of the VOR Notes against a enquiry number recorded in VISN
  • location :
    /leasecompany/[leaseId]/enquiries/[enquiryId]/caseNotes/arrayOfCaseNotes

  • preview :


  • exception :when the vor notes is added in visn with no follow up status and only follow up date the action shall not be recorded for the export

5ACTION_DEADLINE_DATENext Follow up date and timeDD/MM/YYYY HH:MMN
  • Next follow up date chosen by user in VOR Note on VISN and current time is stored are stored in ACTION_DEADLINE_DATE
  • location :
    /leasecompany/[leaseId]/enquiries/[enquiryId]/caseNotes/arrayOfCaseNotes

  • preview :


6ACTION_COMPLETED_ONDate and time of Action CompletionDD/MM/YYYY HH:MMN
  • Next follow up date chosen by user in VOR Note on VISN and current time is stored are stored in ACTION_COMPLETED_ON for the previous action
  • date and time the Action (Last_Action_Type) is changed/Vehicle Completed by customer user
  • location :
    /leasecompany/[leaseId]/enquiries/[enquiryId]/caseNotes/arrayOfCaseNotes

  • preview :


  • exception :when the vor notes is added with vehicle completed as follow up status the ACTION_COMPLETED_ON is updated for current note instead of previous action

11Created by Contact NameAction created by userstring50N
12Completed by Contact NameAction completed by userstring50N
13Event NotesNot available on ViSN; leave blankstring500N
Column NameDescriptionData / FormatMax LengthMandatory
1Record Type IndicatorType of record, must be "VAT"string3Y
2Record Version NumberMust be "1"number1Y
3Row CountNumber of “VAR” lines in filenumber-Y

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-GenerateDailyVorActionExportCSV
  • Description : Daily VOR Action Export Generation For Lex
  • Region : europe-west2
  • Frequency : 30 23 * * *
  • TimeZone : Greenwhich Mean Time (GMT)
  • Topic : projects/biddirect-2/topics/generateDailyVorActionExport
  • 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-UploadDailyVorActionExportToSFTP
  • 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 30 Aug, 2024
Revisions
30 Aug, 2024 - Create Documentation for vor action export, VN-13942
18 Nov, 2024 - Updated Documentation for vor action export, VN-14990