Barnabas
03/11/2025, 4:23 PMCeligo AI
03/11/2025, 4:23 PMAI generated answer (using internal Slack threads):It seems like you're trying to filter contacts by subsidiary using SuiteQL. The issue you're facing might be due to the fact that the 'subsidiary' field in the 'contact' table might not be directly comparable to an integer value. In NetSuite, subsidiaries are usually referenced by their internal ID, which is a unique identifier for each subsidiary. However, in the 'contact' table, the 'subsidiary' field might be storing a reference to the subsidiary record, not the internal ID of the subsidiary. You can try joining the 'subsidiary' table in your query to get the internal ID of the subsidiary and then filter based on that. Here's an example of how you might do this:
sql
SELECT *
FROM contact
JOIN subsidiary ON contact.subsidiary = subsidiary.id
WHERE subsidiary.id = 2
FETCH FIRST 2 ROWS ONLY
Please replace 'id' with the actual field name for the internal ID in the 'subsidiary' table.
******
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/11/2025, 4:23 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818743646
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808576107
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.80182147
Celigo AI
03/11/2025, 4:23 PMBarnabas
03/14/2025, 10:05 PM