Hi guys,
I’m not a developer, or programmer by any means, and I’m struggling to have two different types of fields syncing. It seems my only problem is that Field2 (the target) is a Linked Record field, and Field1 is a Single Line text field. I have no clue what to do at this point…
The script i have so far looks like this
// get the table
let table = base.getTable("Table1");
let query = await table.selectRecordsAsync({fields: table.fields});
// loop through the records
for (let record of query.records) {
// now update Field 2 with the array of IDs in Field 1
let msCopy = await table.updateRecordAsync(record, {
"Field2": record.getCellValue("Field1")
})
}