Aaron R
03/27/2025, 1:23 AMCeligo AI
03/27/2025, 1:23 AMAI generated answer (using internal Slack threads):The ID field for the subsidiary name in NetSuite is 'subsidiary'. However, if you want to get the name of the subsidiary without the hierarchy, you should use 'subsidiarynohierarchy' as the ID field. This can be used with the
search.lookupFields
method in SuiteScript to retrieve the name of the subsidiary without the hierarchy. Here is an example of how you can use it:
javascript
let subsidiary_name = search.lookupFields({
type: 'subsidiary',
id: subsidiary_id,
columns: ['subsidiarynohierarchy']
}).subsidiarynohierarchy;
In this code, subsidiary_id
is the ID of the subsidiary you want to get the name for. The method search.lookupFields
will return an object where the keys are the column names and the values are the corresponding values for the given ID. By accessing the 'subsidiarynohierarchy' property of this object, you can get the name of the subsidiary without the hierarchy.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/27/2025, 1:23 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860621274
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827459276
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824440181
Celigo AI
03/27/2025, 1:23 AM