Lookup

Gets data from a lookup table and adds it to frames.

Parameters

NameDefaultMeaning
formatThe format of the table (JSON or CSV)
prefixA prefix to be added to lookup value names
sufffixA suffix to be added to lookup value name
keyThe name of the frame attribute used to in the lookup
rkeyThe name of the lookup table column/property that matches the key
urlThe URL to download the content from

Description

This function searches url for any cases where rkey matches the value of key in our frame.

This is often used to load product details or other useful tabular data into a capture.

Example

If the frame contains the following attributes…

AttributeValue
ProductSKUAR97B
StartTime10:00AM
EndTime11:00AM

and we have the following table…

SKUWeightHeightWidthDepth
AR97A500100100100
AR97B800120120120
AR44X12001200120120
{
   "type": "lookup",
   "url": "https://mylookuptable",
   "key": "ProductSKU",
   "rkey" : "SKU",
   "prefix": "Product"
}

The final results attributes will look like…

AttributeValue
ProductSKUAR97B
StartTime10:00AM
EndTime11:00AM
ProductWidth120
ProductHeight120
ProductDepth120