Re: Unable to retrieve data using field id

2351 1
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer


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 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') );

How can I do it using field id instead of ‘my-field-name’?

8 Replies 8


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.

I indeed want to get the field values by specifying the field id, not the field name.

4 - Data Explorer
4 - Data Explorer

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.

5 - Automation Enthusiast
5 - Automation Enthusiast

Did anyone find a solution to this by any chance? 🙂
record.get(Field ID) returns undefined for me, but passing the field name return the field value just fine. ..However, this isn't really something I want to have to manage later when field names are inevitably changed 🤔

4 - Data Explorer
4 - Data Explorer

I'm facing the same issue, did you solve your issue?

Not me unfortunately, I ended up just going with field names. 

4 - Data Explorer
4 - Data Explorer

using this:  select({ returnFieldsByFieldId: true }) solve my issue.