Sadevio On-Premise configuration

This section will focus on how to configure the SADEVIO system to activate the Velocity integration when running on-premise.

Configure the access system

image.png

Configure the Velocity REST API

Configure User Defined Fields

image.png

Configure Custom Card Data Transformation

In the UID Post Processor section, you can add custom JavaScript code to manipulate the actual transferred credential value. This is useful if you need to change the order of a card value or add a facility code in a QR code scenario.

The original value is stored in the variable cardNumber. Your code should return a value that represents the new credential value.

Example: Adding a Facility Code

The following example checks if the provided UID is 6 characters long. If it is, the code takes the last 5 characters and appends a prefix of 1755- to the value.

if(cardNumber != "" && cardNumber.length == 6 && cardNumber.startsWith('0')){
    var newUid = '1755-'+cardNumber.substr(1);
    return newUid;
}else{
    return cardNumber;
}

Place this code in the UID Post Processor section to achieve the desired transformation.


Revision #5
Created 28 June 2024 00:10:17 by Admin
Updated 28 June 2024 00:52:39 by Admin