08-24-2020, 04:24 PM
Hi stamatis,
Here's an example of how to provide your own cdbRecordID:
local tDataA, tTable, tTarget
# Table name: clients
# Keys: firstName, lastName, age, income
put myUUID into tDataA["cdb"]["cdbRecordID"] //replace myUUID with the uuid you want to use for the cdbRecordID
put "John" into tDataA["firstName"]
put "Smith" into tDataA["lastName"]
put "47" into tDataA["age"]
put "100000" into tDataA["income"]
put "clients" into tTable
put "cloud" into tTarget
put cdb_create(tDataA,tTable,tTarget) into tRecordID
Here's an example of how to provide your own cdbRecordID:
local tDataA, tTable, tTarget
# Table name: clients
# Keys: firstName, lastName, age, income
put myUUID into tDataA["cdb"]["cdbRecordID"] //replace myUUID with the uuid you want to use for the cdbRecordID
put "John" into tDataA["firstName"]
put "Smith" into tDataA["lastName"]
put "47" into tDataA["age"]
put "100000" into tDataA["income"]
put "clients" into tTable
put "cloud" into tTarget
put cdb_create(tDataA,tTable,tTarget) into tRecordID