Jun 17, 2022 12:50 AM
Hello
The following code works when I pass in the field name as a string to the get function. It doesnt when I use the field id. I want to use field id. The code is taken from the API sample for javascript
await table.select().eachPage(function page(records, fetchNextPage) {
// This function (`page`) will get called for each page of records.
records.forEach(function (record) {
console.log('Retrieved', record.get('my-field-name') );
});
fetchNextPage();
})
How can I do it using field id instead of ‘my-field-name’?
Jun 17, 2022 07:04 PM
Try…
record.id
Jun 18, 2022 08:58 AM
I think he wants to get field values by specifying the field ID instead of the field name. Getting the record ID won’t help in that case.
Jun 19, 2022 01:30 PM
I indeed want to get the field values by specifying the field id, not the field name.
Dec 07, 2022 03:28 AM
Any news on this? As @David_Joyce mentioned I would like to get field values by id. I want to avoid field names in case those are updated so I'm using fieldIds to filter fields when selecting records but is not of much use if I cannot use the record.get() with the field Id.