Hi
I need your help today.
I would like write a script to update à LinkToFild with multiple Record Links. I write this script but “await tableLudique.updateRecordAsync” doesn’t work.
Can you help me ?
let inputConfig = input.config();
let rentedgames = inputConfig.listingrent;
let proposedgames = inputConfig.listingpropose;
let tableLudique = base.getTable("Profil Ludique");
let recordsPulpo = await base.getTable("Liste jeux de PulpoLudo").selectRecordsAsync();
let record = inputConfig.record;
console.log(proposedgames);
console.log(rentedgames);
for (let rentedgame of rentedgames) {
for (let proposedgame of proposedgames) {
if (proposedgame == recordsPulpo.getRecord(rentedgame).getCellValue("Référence")0].id) {
proposedgames.splice(proposedgames.indexOf(proposedgame), 1);
};
};
};
console.log(proposedgames);
console.log(rentedgames);
await tableLudique.updateRecordAsync(record, {
"liste des jeux à proposer": proposedgames,
});
Thanks for your help