Hi all.
Sorry for asking so many questions lately, but I'm doing things I've not seen before.
Usually I do an SDK search in a known folder for any files, sort by date (descending) and grab the top ID number. This usually gets me the latest document. :)
searchSettings.SetSortColumn(SystemColumn.CreationDate, Laserfiche.RepositoryAccess.SortDirection.Descending);
SearchResultListing Results = lfSearch.GetResultListing(searchSettings);
instFileID = Results.GetDatumAsString(1, SystemColumn.Id);
However there is now a 'metadata?' field named "Status - Code" that may have a text value of "Primary" for one of the documents. If so, that is really the doc id I want. [no clue yet how to fetch/search these meta fields]
So..
How can I tweak my search to see if the word "Primary" in that field and use that ID, but if nothing is marked as Primary, just do what I'm already doing; grabbing the ID for the 'latest' document.
I've try to find this out on my own with no success.
Thank you for pondering this.