Skip to main content

LOOKUP

Lookup a value in a non-related table or datasource.

Example Usage

LOOKUP('Departments') -> uses the incoming raw data value to lookup against Departments.Code
LOOKUP('Departments', value, 'Description') -> uses the incoming raw data value to lookup against Departments.Description
LOOKUP('Departments', SLICE(..), 'Code') -> uses another function (SLICE) to modify t

Overview

Function signature
LOOKUP(tablename, value, column, returncolumn)

Category
Database

Return data type
int

Arguments

NameDataTypeList Options                          Description
tablenamestringThe target table or datasource to search upon
valuestringThe incoming value to use when searching on "column"
columnstringThe column in the target table to search (defaults to "Code")
returncolumnNoneThe column to return from the found record