NetSuite Transaction Type that we use in saved search filter using SuiteScript


135

While creating search in a script if you need to reference the NetSuite Transaction Type. You have to use the equivalent type in script as you use in saved search. So we have provided the record name as well as the type that we can use in script.

Transaction TypeSuiteScript SearchFilter
Assembly BuildBuild
Assembly UnbuildUnbuild
BillVendBill
Bill CCardVendCard
Bill CreditVendCred
Bin Putaway WorksheetBinWksht
Bin TransferBinTrnfr
Bill PaymentVendPymt
Cash RefundCashRfnd
Cash SaleCashSale
CCard RefundCardRfnd
CheckCheck
CommissionCommissn
Credit CardCardChrg
Credit MemoCustCred
Currency RevaluationFxReval
Customer DepositCustDep
Customer RefundCustRfnd
DepositDeposit
Deposit ApplicationDepAppl
Expense ReportExpRept
Inventory AdjustmentInvAdjst
Inventory CountInvCount
Inventory DistributionInvDistr
Inventory TransferInvTrnfr
Inventory WorksheetInvWksht
InvoiceCustInvc
Item FulfillmentItemShip
Item ReceiptItemRcpt
JournalJournal
OpportunityOpprtnty
PaymentCustPymt
Purchase OrderPurchOrd
QuoteEstimate
Return AuthorizationRtnAuth
Sales OrderSalesOrd
Sales Tax PaymentTaxPymt
Statement ChargeCustChrg
TransferTransfer
Transfer OrderTrnfrOrd
Vendor Return AuthorizationVendAuth
Work OrderWorkOrd

Here, you can see the example to get invoice records only from the transaction search.

var filter = [];
filter.push(new nlobjSearchFilter('type', null, 'is', 'CustInvc'));
var searchresults = nlapiSearchRecord('transaction', null, filters);


admin

0 Comments

Your email address will not be published. Required fields are marked *