Aaron R
06/18/2025, 9:55 PMCeligo AI
06/18/2025, 9:55 PMAI generated answer (using internal Slack threads):To filter by posting period in an ODBC query, you would typically use the
POSTINGPERIOD
field in your WHERE clause. However, it's important to note that the POSTINGPERIOD
field in NetSuite uses unique identifiers, not the actual period names. Therefore, you would need to know the ID of the posting period you want to filter by.
Here is a basic example of how you might structure your query:
sql
SELECT * FROM TRANSACTIONS
WHERE POSTINGPERIOD = 'your_posting_period_id'
To pull the posting period ID fields, you would simply include the POSTINGPERIOD
field in your SELECT statement. For example:
sql
SELECT POSTINGPERIOD, OTHER_FIELDS FROM TRANSACTIONS
Please note that the above examples are simplified and your actual query may need to be more complex depending on your specific requirements.
Also, it's worth mentioning that the POSTINGPERIOD
field might not be available for non-posting transactions like Sales Orders. In such cases, you might need to reference back to the accounting periods using the transaction date or find it in related records.
******
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
06/18/2025, 9:55 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815075517
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811869323
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811265588
Celigo AI
06/18/2025, 9:55 PM