This article is relevant if you develop software using NetSuite’s SuiteScript.
NetSuite Account Type SearchFilters
If you are developing a search query and you need to reference the NetSuite General Ledger Account Types, you need to translate what you see in the Saved Search user interface to the equivalent nlobjSearchFilter code.
Account Type | SuiteScript SearchFilter |
Bank | Bank |
Accounts Receivable | AcctRec |
Other Current Asset | OthCurrAsset |
Fixed Asset | FixedAsset |
Other Asset | OthAsset |
Accounts Payable | AcctPay |
Credit Card | CredCard |
Other Current Liability | OthCurrLiab |
Long Term Liability | LongTermLiab |
Equity | Equity |
Income | Income |
Cost of Goods Sold | COGS |
Expense | Expense |
Other Income | OthIncome |
Other Expense | OthExpense |
Non Posting | NonPosting |
Deferred Revenue | DeferRevenue |
Deferred Expense | DeferExpense |
Unbilled Receivable | UnbilledRec |
Statistical | Stat |
SuiteScript Code Example
Here is code that looks for all the Accounts Receivable accounts:
// return the number of Accounts Receivable Accounts defined within the NetSuite Account function getARCount(){ var filters = []; filters[0] = new nlobjSearchFilter('type', null, 'is', 'AcctRec' ); var searchresults = nlapiSearchRecord('account', null, filters, []); if (searchresults){ return searchresults.length } else { throw nlapiCreateError('getARCount_ERROR', 'Function did not return an AR Account.'); }; };
Previous Articles
I have written previous articles that are related to this article.
- NetSuite SearchFilter Internal Transaction Type Codes
- NetSuite SearchFilter Transaction Internal Status List
- How To: Script to Automate NetSuite Journal Entries
- Showing NetSuite Internal IDs and Field Names
- Use Custom Logic to Drive NetSuite General Ledger Posting Accounts
Subsequent cross referenced articles are below.
Get Help
We love to innovate on the platform. If you are looking to get more out of your NetSuite account, contact us.
2 thoughts on “NetSuite SearchFilter Internal Account Type Codes”