Loading...
Saves a record for a config
configName - name of the app config
record - a record structure Json object (as it comes from loadConfigRecordById)
Simple:
Create a new record:
Create a new record and use the result:
let record = await brixxApi.loadConfigRecordById("myConfig", 1); record.data.Name = "John Doe"; brixxApi.saveConfigRecord("myConfig", record);
brixxApi.saveConfigRecord("myConfig", { data: { myFirstName: "John", myLastName: "Doe" } });
let newRecord = brixxApi.saveConfigRecord("myConfig", { data: { myFirstName: "John", myLastName: "Doe" } }); console.log("New Record Id:" + newRecord.data.id);