function cdb_readKeys(pInputA)


Summary

This function reads record(s) and returns only the keys requested from a record’s contents. Function may access multiple records from a table.

Inputs

Outputs

(Array) – Containing a partial record with only the keys as defined by the input.

Additional Requirements

This API call requires internet access to make cloud calls.

API Version

Examples

local tInputA, tOutputA, tTableID, tRecordIDs

#Table name: clients
#Keys: firstName, lastName, age, income
#RecordIDs (line delimited list): 8b3af158-af3a-4d92-9363-87756711f771

#Input: tInputA
put "clients" into tInputA["cdbTableName"]
put "cloud" into tInputA["cdbTarget"]
put tRecordID into tInputA["cdbRecordID"]
put "age,income" into tInputA["keyList"]

put cdb_readKeys(tInputA) into tOutputA

#Output: tOutputA["8b3af158-af3a-4d92-9363-87756711f771"]["age"] - value
#                                                       ["income"] - value