Skip to main content
Not sure which Scandit product fits your use case?

Install our data-capture-sdk skill so your coding agent can answer questions about Scandit products and recommend the right one for your use case, directly from your editor. More info →

Run this in a terminal in your project directory, then follow the instructions to select your coding agent.

npx skills add https://github.com/scandit/skills --skill data-capture-sdk

Your coding agent loads the skill automatically based on your prompt; to invoke it explicitly, call /data-capture-sdk followed by your task.

Configuring Input Data

This guide explains how to configure input data for the Custom Data Transfer feature. Input data determines the type and format of the information to be collected by the user during scanning.

Types of Input Data

There are three types of input data you must configure:

Input TypeDescription
Standard InputPredefined or fixed input fields configured in advance.
User Session InputData provided by the user once at the beginning of a scanning session.
User Scan InputData provided by the user for each scanned barcode.

Standard Input

Standard inputs are fixed values or predefined fields. They are useful when you need to always attach the same kind of information (e.g., device ID, operator ID).

FieldDescription
typeAlways set to standardInput for this input type.
targetEither of picker, googleSheets, or share. This defines where the data will be sent. Additional fields may be required depending on the target.
fieldsAn array of InputField objects that define the data to be included.

Target

TargetDescriptionAdditional Fields
pickerData will be included in a CSV.format: 'csv'
googleSheetsData will be sent to a Google Sheet.spreadSheetsId (string)
sheetId (Int)
shareData will be shared via Android's share functionality as a CSV file.format: 'csv'

InputField

FieldDescription
TypeDefines the field type (barcodeData, symbology, quantity, info, additionalInfo, generic).
KeyIdentifier used for both display (label) and as the key in the output.

Example Configuration

{
"type": "standard",
"target": {
"type": "googleSheets",
"spreadSheetId": "My ID",
"sheetId": 0
},
"fields": [
{
"type": "barcodeData",
"key": "name-of-barcode-column"
},
{
"type": "quantity",
"key": "name-of-barcode-quantity"
},
{
"type": "generic",
"key": "name-of-a-generic-column"
}
]
},
{
"type": "userSession",
"fields": [
{
"type": "generic",
"key": "STORE_NAME_1"
},
{
"type": "generic",
"key": "STORE_NAME_2"
}
]
},
{
"type": "userScanInput",
"fields": [
{
"type": "generic",
"key": "SHELF_LOCATION"
},
{
"type": "quantity",
"key": "QUANTITY_SCANNED"
}
]
}