Hi,
The following code crashes and I don't know why:
let table = base.getTable("Touchpoints");
let cTable = base.getTable("Contact");
let record = await input.recordAsync('Select a record to use', table);
let callBack = await input.textAsync('What is the callback date? (YYYY-MM-DD)');
let notes = await input.textAsync('Include any callback notes');
let callDate = new Date(callBack);
let recordID = record.getCellValueAsString("Contact RecordID");
console.log("Record of the Contact ID full record is: ");
console.log(recordID);
//console.log("The record id is: " + 'recBsDnoriZEaRY4i');
//let recordInsert = [{'id' : recordID}];
//console.log(billTillDate);
await table.createRecordAsync({
'Start Date/Time': callDate,
'Notes': notes,
'Contact': [{ id : recordID }]
});
// recpBkpe7kCZSICoS
Video for context:
https://share.getcloudapp.com/12u7pypE