I am trying to retrieve some data from custom records in Netsuite. I have set up a saved search which i am getting the results from then iterating through the search result rows to get the field values, which is ok for default fields but i can not figure out how to get the Value of a custom Field. I have a selection custom field called "custrecord_example" which i can get from the script ID but then i need to retrieve the Value. I have seen on other posts that you can use a GetSearchValue Method but i dont get get this on the SearchColumnSelectCustomField object.
Dim searchRes As SearchResult = ns_Service.search(
New CustomRecordSearchAdvanced With {.savedSearchId = "590"})
For pageCount As Integer = 1 To searchRes.totalPages
For Each sRow As Object In searchRes.searchRowList
Dim id As Long = sRow.basic.id(0).searchValue
For Each custField As SearchColumnCustomField In sRow.basic.customFieldList
If custField.scriptId = "custrecord_example" Then
Dim custSelectField As SearchColumnSelectCustomField = DirectCast(custField, SearchColumnSelectCustomField)
'Do something here to get the Value from custSelectField
End If
Next
Next
searchRes = ns_Service.searchMore(pageCount + 1)
Next