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
Trying to get Transactions + Items via Saved Search in C#
I'm writing C# code to retrieve a list of Transactions with certain criteria from NetSuite. My goal is to loop through each Transaction result, and in each Transaction loop I want to loop through all items associated to the current Transaction. I'm building XML nodes as I go to export the Transaction information in XML format.
I've set up a Saved Search in NetSuite and run a TransactionSearchAdvanced in my C# code. It seems the way the results are structured with SearchRows as such:
1. TransactionA - Item1
2. TransactionA - Item2
3. TransactionA - Item3
4. TransactionB - Item2
5. TransactionB - Item4
I'm trying to find a way to get Transactions and Items similar to how running a regular TransactionSearch works, where the results are in a recordList like so: