I am trying to retrieve a saved search. In the NS UI the search will display the names of the customer and sales rep. When I use web services the response only returns the internal IDs for those fields.
What am I missing?
here is a portion of the code:
Dim tsa As TransactionSearchAdvanced = New TransactionSearchAdvanced tsa.savedSearchId = 100 _searchPreferences = New SearchPreferences _searchPreferences.bodyFieldsOnly = False _searchPreferences.returnSearchColumns = True _service.searchPreferences = _searchPreferences Dim result As SearchResult result = _service.search(tsa)
and here is a row from the response: <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2009_1.transactions.webservices.netsuite.com"> <tranSales:basic xmlns:platformCommon="urn:common_2009_1.platform.webservices.netsuite.com"> <platformCommon:entity> <platformCore:searchValue internalId="12430"/> <platformCore:customLabel>Client</platformCore:customLabel> </platformCommon:entity> <platformCommon:internalId> <platformCore:searchValue internalId="57803"/> </platformCommon:internalId> <platformCommon:status> <platformCore:searchValue>picked</platformCore:searchValue> </platformCommon:status> </tranSales:basic> <tranSales:appliedToTransactionJoin xmlns:platformCommon="urn:common_2009_1.platform.webservices.netsuite.com"> <platformCommon:salesRep> <platformCore:searchValue internalId="-5"/> </platformCommon:salesRep> <platformCommon:shipDate> <platformCore:searchValue>2009-10-18T21:00:00.000-07:00</platformCore:searchValue> </platformCommon:shipDate> <platformCommon:tranDate> <platformCore:searchValue>2009-10-13T21:00:00.000-07:00</platformCore:searchValue> </platformCommon:tranDate> <platformCommon:tranId> <platformCore:searchValue>WO20111</platformCore:searchValue> <platformCore:customLabel>Work Order</platformCore:customLabel> </platformCommon:tranId> <platformCommon:customFieldList> <platformCore:customField xsi:type="platformCore:SearchColumnBooleanCustomField" internalId="appliedtotransaction_custbody4"> <platformCore:searchValue>false</platformCore:searchValue> </platformCore:customField> <platformCore:customField xsi:type="platformCore:SearchColumnBooleanCustomField" internalId="appliedtotransaction_custbody5"> <platformCore:searchValue>true</platformCore:searchValue> </platformCore:customField> </platformCommon:customFieldList> </tranSales:appliedToTransactionJoin> </platformCore:searchRow>