Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
TransactionSearch with PostingPeriod filter
My objective is to get transactions that are not part of a closed accounting period. Any ideas for alternatives from below would be welcome.
My take at this is to determine open periods and use TransactionSearchBasic to retrieve based on period. I'm using 2008.2 wsdl
I cant get TransactionSearchBasic to take the setPostingPeriod. I use SearchMultiSelectField and pass in the internal id for accounting period and get error from NS. Here's snipit:
TransactionSearchBasic tsb = new TransactionSearchBasic();
RecordRef rRef = new NsWsRecordRef();
rRef.setInternalId("22");
tsb.setPostingPeriod(new SearchMultiSelectField(new RecordRef[]
{rRef},SearchMultiSelectFieldOperator.anyOf));
I get in reply:
[Code=INVALID_SEARCH_SELECT_OBJ] Invalid search select field object: {urn:core_2008_2.platform.webservices.netsuite.com}SearchMultiSelectField