Currently, I am working on creating a restlet in Netsuite to retrieve details about a specific Field. The code snippet I have been using is as follows:
error code: UNEXPECTED_ERROR
error message:TypeError: Cannot call method "getType" of null (login.js$12762#16)
Here is the code that I am currently utilizing:
function getRESTlet(dataIn) {
var field = nlapiGetField('custitem_cipp'); // Specify the internalId of the field
return field.getType();
}