Tiina Böös
09/25/2025, 11:44 AMCeligo AI
09/25/2025, 11:44 AMAI generated answer (using internal Slack threads):To get tax preferences using the
N/config module, you would need to load the ACCOUNTING_PREFERENCES configuration type. However, it's important to note that not all accounting preferences might be accessible through this method. Here is a sample code snippet:
javascript
var config = require('N/config');
var accountingPreferences = config.load({
type: config.Type.ACCOUNTING_PREFERENCES,
});
var taxPreferences = accountingPreferences.getValue({
fieldId: 'taxpreferences',
});
In this code, config.load is used to load the ACCOUNTING_PREFERENCES configuration. Then, getValue is used to get the value of the 'taxpreferences' field.
Please note that the fieldId 'taxpreferences' is just an example and might not exist or be accessible. You would need to replace it with the actual fieldId of the tax preferences you want to access.
******
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
09/25/2025, 11:44 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799377441
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.791992247
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.790283263
Celigo AI
09/25/2025, 11:44 AMTiina Böös
09/25/2025, 12:58 PM