How to change the value of the record ref?

I am unable to change the value of the RecordRef

RecordRef {
  _type: undefined,
  _name: undefined,
  internalId: undefined,
  externalId: undefined,
  type: undefined,
  name: undefined,
  _reference: 'RecordRef'
}

Sample code

const recordRef = new Record.Types.RecordRef();
recordRef.internalId = 1234567;
recordRef.type = "customer";

Sorry, but do not understand at all. Can you please give some more context?
What do you want to do?
What is “RecordRef”, where does it come from and what does it have to do with n8n?

1 Like

I have added the npm library(https://www.npmjs.com/package/node-suitetalk) according to the given example on the above link the variable assignments is not working.
Can you please check

Your code seems to be incomplete. The following lines are missing:

const NetSuite = require("node-suitetalk");
const Record = NetSuite.Record;

Additionally, do you also have to set the environment variable

export NODE_FUNCTION_ALLOW_EXTERNAL=node-suitetalk

As documented here: