Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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