
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2023 02:46 PM
HI,
I have the following problem - pls see also the screenshot enclosed for deeper explanation.
- I set per script a link in a multi-link enabled cell/coloumn. This works fine:await table_tacs.updateRecordAsync(per_positive_tac, {[nameReplacedBy]: [{id: newrecord_miete}]});
- I then want to add in the same cell a second link, i.e. attach a second link. I try to do this with this command:await table_tacs.updateRecordAsync(per_positive_tac, {[nameReplacedBy]: [per_positive_tac.getCellValue(nameReplacedBy),{id: newrecord_BK }]});
- But this throws an error (see screenshot) - I tried various ways, but none works; Any help from the community? If there is a better way to get the topic solved - also fine: the objective is just to
- set the 2 links to "newrecord_miete" and to "newrecord_BK " in one cell, which is column "nameReplacedBy" of the record "per_positive_tac"
Thank you!, Chris
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2023 07:24 PM
There is a problem with the use of updateRecordAsync.
updateRecordAsync is an asynchronous process, and executing it in succession like this will not reflect the changes immediately.
All fields need to be updated in a single updateRecordAsync run.
await table_tacs.updateRecordAsync(per_positive_tac, {
[nameCheckedtoSplit]: 1,
[nameReplacedBy]: [{id: newrecord_miete},{id: newrecord_BK}]
})

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2023 07:24 PM
There is a problem with the use of updateRecordAsync.
updateRecordAsync is an asynchronous process, and executing it in succession like this will not reflect the changes immediately.
All fields need to be updated in a single updateRecordAsync run.
await table_tacs.updateRecordAsync(per_positive_tac, {
[nameCheckedtoSplit]: 1,
[nameReplacedBy]: [{id: newrecord_miete},{id: newrecord_BK}]
})

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2023 09:56 PM
Dear @Sho : wow, perfect, thank you! So I had 2 mistakes; not reflecting the asynchronity and writing an error in the code when updating with more than 1 link (which I tried before..). Thank you so much for the fast and helpful response! br Chris
