function cdb_batchReadKeys(pInputA)


Summary

This function reads records and returns only the keys requested from each record’s contents. Function may access records from multiple tables in the same call.

Inputs

Outputs

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

API Version

Examples

local tInputA, tOutputA, tTableID, tRecordIDs

#Table name: clients
#Keys: firstName, lastName, age, income
#TableID: 701bf5f3-8080-444c-b287-2f8dddc7e268
#RecordIDs (line delimited list): 8b3af158-af3a-4d92-9363-87756711f771

put cdb_getTableID("clients") into tTableID

#Input: tInputA
repeat for each line xRecordID in tRecordIDs
    put empty into tInputA[tTableID][xRecordID]["age,income"]
end repeat

put "cloud" into tInputsA["cdbTarget"]

put cdb_batchReadKeys(tInputA) into tOutputA

#Output: tOutputA["701bf5f3-8080-444c-b287-2f8dddc7e268"]["8b3af158-af3a-4d92-9363-87756711f771"]["age"] - value
#                                                                                             ["income"] - value