
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 18, 2023 08:01 PM
I am creating a new record triggered by a script with the following code:
let newRecs = {};
newRecs[0]['id'] = 'recDYGIT7fj80tTAH';
await table.createRecordAsync({
'Start Date/Time': billTillDate,
'Contact': newRecs,
'Notes': 'New Record note'
});
I am getting the following error:
TypeError: Cannot set properties of undefined (setting 'id')
Can you please modify the script - assuming the record Id is correct - so I can populate my Contact link field?
Thank you!
Solved! Go to Solution.
1 Solution
Accepted Solutions

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 18, 2023 08:10 PM
Never mind fixed it with the following code:
await table.createRecordAsync({
'Start Date/Time': billTillDate,
'Contact': [{id: 'recDYGIT7fj80tTAH'}],
'Notes': 'Working!'
});
Closing issue now
1 Reply 1

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 18, 2023 08:10 PM
Never mind fixed it with the following code:
await table.createRecordAsync({
'Start Date/Time': billTillDate,
'Contact': [{id: 'recDYGIT7fj80tTAH'}],
'Notes': 'Working!'
});
Closing issue now
