Barnabas
03/17/2025, 7:13 AMCeligo AI
03/17/2025, 7:13 AMAI generated answer (using internal Slack threads):To filter products by subsidiary in NetSuite, you can modify the query in your script to include a filter for the subsidiary. In the provided script, the subsidiary is already included in the select statement. You can add a condition in the where clause to filter by the subsidiary. Here is an example of how you can modify the query:
javascript
set-value:x:@.q
strings.concat
.:@"select
i.id,
i.itemid,
i.subsidiary,
i.displayname,
i.description,
p.unitprice
from item i
left join pricing p on p.item = i.id
where p.pricelevel = '1' and i.subsidiary = 'Your Subsidiary ID'"
Replace 'Your Subsidiary ID' with the ID of the subsidiary you want to filter by.
Please note that this is a general approach and might need adjustments based on your specific use case and data structure.
******
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/17/2025, 7:13 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801494062
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793828964
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.791333795
Celigo AI
03/17/2025, 7:13 AMBarnabas
03/17/2025, 7:14 AMBarnabas
03/19/2025, 5:01 PM