I followed the advice as given to Joshua.
I figured out how to place the advanced search syntax, but I'm not having much luck locating the object that will reference the search criteria for review number or case number.
I've tried examining the options under settings.xxx and also the Field.xxx and not found a reference like those shown for other options.
For example I tried settings.AddColumn(Field.ReferenceEquals(currentrow(2)) but it is not correct, nor are other items.
(2))
Any idea what I'm overlooking ?
Regards,
Brian
currentrow(0) is the Document type (PDF, TIF)
currentrow(1) is the Case Number
currentrow(2) is the Review number
currentrow(3) is the path to place the file
My code snippet is as follows:
Dim serverName As String = CMBLaserficheServerName.Text, repositoryName As String = CMBRepositoryName.Text
Dim userName As String = CMBLaserficheRepositoryUserLogin.Text, userPassword As String = CMBLaserficheRepositoryUserPassword.Text
Dim mySession As New Session
Dim listing As New List(Of String)
' Logging into the Repository
mySession.LogIn(userName, userPassword, New RepositoryRegistration(serverName, repositoryName))
'This search is looking for any entry name ("*"),
' only documents ("DB"), and the review and case numbers provided
' by an external csv list.
Dim searchParameters As String = "{[]:[Case Number]=currentrow(1), [Review Number]=currentrow(2)} & {LF:Name=""*"", Type=""DB""}"
Dim lfSearch As Search = New Search(mySession, searchParameters)
Dim settings As SearchListingSettings = New SearchListingSettings
Dim searchResults As SearchResultListing
' ** Dim targetFolder As String
Dim filePathAndName As String
' What columns do you want the search to retrieve...
settings.AddColumn(SystemColumn.Name)
settings.AddColumn(SystemColumn.CreationDate)
settings.AddColumn(SystemColumn.EntryType)
settings.AddColumn(SystemColumn.Path)
settings.AddColumn(Field.ReferenceEquals(currentrow(2))