Template File: /var/www/html/wp-content/themes/livecloud2017/page-sidebar.php | Template Hierarchy

WP version: 4.9.3
PHP version 5.5.37-1+deprecated+dontuse+deb.sury.org~trusty+1


function cdb_readKeys(pInputA)


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


  • pInputA (Array) – An array with the following format:
    • [“cdbTableName”] (String) – The specified table name.
    • [“cdbTarget”] (String) – The place to access the records, either “cloud” or “local”.
    • [“cdbRecordID”] (String) – A single cdbRecordID or a line delimited list of cdbRecordIDs, or “*” for all records
    • [“keyList”] (String) – A comma delimited list of the keys to be returned from the record.


(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

  • 0.3.2 – Introduced


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