Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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