Help

Airtable Scripting App crashes when trying to link my record

Topic Labels: Scripting
825 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Kosta_Kondraten
7 - App Architect
7 - App Architect

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

1 Reply 1
stenkate
6 - Interface Innovator
6 - Interface Innovator

@Kosta_Kondraten Did you manage to mitigate this crash issue? I think I encounter the same issue with inserting a link record ID to another record in another table, and I'm hoping you found a solution in the meantime. 🙂 Thanks in advance!