Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Calling a saved search in C#
Hi,
I am trying to call a saved search in C# using SuiteTalk, and have my application save the results to a delimited file. The calling part is fine (I think):
TransactionSearchAdvanced ts = new TransactionSearchAdvanced { savedSearchId = "273" }; SearchResult result = service.search(ts); The problem is I can't see the results as the would be when viewing them in Netsuite - my result.recordList is null, and the searchRow only seems to contain the internal Ids, but no indication of what columns the report has:
<platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_1.transactions.webservices.netsuite.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_1.platform.webservices.netsuite.com"> <platformCommon:account> <platformCore:searchValue internalId="54"/> </platformCommon:account> <platformCommon:accountType> <platformCore:searchValue>Income</platformCore:searchValue> </platformCommon:accountType> <platformCommon:amount> <platformCore:searchValue>2159.96</platformCore:searchValue> </platformCommon:amount> <platformCommon:entity> <platformCore:searchValue internalId="91909"/> </platformCommon:entity> <platformCommon:item> <platformCore:searchValue internalId="630791"/> </platformCommon:item> <platformCommon:taxCode> <platformCore:searchValue internalId="641239"/> </platformCommon:taxCode> <platformCommon:tranDate> <platformCore:searchValue>2011-09-27T16:00:00.000-07:00</platformCore:searchValue> </platformCommon:tranDate> <platformCommon:tranId> <platformCore:searchValue>2037</platformCore:searchValue> </platformCommon:tranId> <platformCommon:type> <platformCore:searchValue>_estimate</platformCore:searchValue> </platformCommon:type> </tranSales:basic> </platformCore:searchRow>
0