ted_p
03/13/2025, 7:31 PMCeligo AI
03/13/2025, 7:32 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Yes, you can generate the value of a field if you have the internal ID of the field instead of the name of the field. In SuiteScript, you can use the
nlapiGetFieldValue
function to get the value of a field by its internal ID.
Here is an example of how you can use this function:
javascript
var fieldValue = nlapiGetFieldValue('internalid');
In this example, 'internalid' is the internal ID of the field. The function will return the value of the field.
However, if you are trying to get the string representation of a field (i.e. custbody_random_field_name) from the internal id, you might need to create a custom lookup record. There is a Field
List/Record source that you can use. The internal ids of the select options of that field match the internal id of custom fields. You can use sourcing to get the script id into another field.
Please note that this approach might involve more complex operations and it's recommended to be used only if you are comfortable with SuiteScript and NetSuite's data structure.Celigo AI
03/13/2025, 7:33 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851057291
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835362196
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813757598
Celigo AI
03/13/2025, 7:33 PM