How to filter SalesTaxItem by subsidiary internal ...
# ask-stanley-ai
a
How to filter SalesTaxItem by subsidiary internal Id using suiteql
c
AI generated answer (using internal Slack threads):
To filter SalesTaxItem by subsidiary internal Id using SuiteQL, you can use a JOIN statement to connect the
item
table with the
kititemsubsidiarymap
table. The
kititemsubsidiarymap
table contains the mapping between items and subsidiaries. Here is a sample SuiteQL query:
Copy code
sql
SELECT * FROM item 
JOIN kititemsubsidiarymap ON item.id = kititemsubsidiarymap.item 
WHERE item.type = 'SalesTaxItem' AND kititemsubsidiarymap.subsidiary = 'subsidiary_internal_id'
Replace
'subsidiary_internal_id'
with the actual internal Id of the subsidiary you are interested in. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816319883
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808528543
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805230558
Please provide your feedback on this answer.
Thank you for your feedback