need a suitesql query that equals this saved searc...
# ask-stanley-ai
m
need a suitesql query that equals this saved search in ns , but also adds the tax rate as a result column: search.create({ type: search.Type.TRANSACTION, filters: [ ["internalid", "anyof", ifIds], "AND", ["custcol9", "noneof", "@NONE@"] ], columns: [ search.createColumn({ name: "datecreated", label: "Date Created" }), search.createColumn({ name: "item", label: "Item" }), search.createColumn({ name: "custcol9", label: "Cost Center List" }), search.createColumn({ name: "custrecord_cc_tax_code", join: "CUSTCOL9", label: "Tax Code" }), search.createColumn({ name: "line", join: "appliedToTransaction", label: "Line ID" }) ] })
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like you are trying to create a SuiteSQL query that matches a saved search in NetSuite and also includes the tax rate as a result column. However, the conversations do not provide a direct answer or code sample to your question. The conversations discuss how to include tax codes in a saved search, how to handle discrepancies between saved searches and SuiteScript, and how to use arrays of values in saved search filters. Unfortunately, without a specific example of a SuiteSQL query that matches the provided saved search, it's not possible to provide a definitive answer. ****** 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.864563
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864196897
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855285704
Please provide your feedback on this answer.