I am working on a document naming process. We have a metadata field on a template in the repository which contains the document number. We can easily find all of the documents by way of a search: {LF:LOOKIN="\Testing Directory\Europe\100 Quality, Information Security and Human Resources\Supporting Document"}
I can further narrow down to a single document by way of using a specific document number and adding this to the end of the search: & {[Default]:[Document Number] = "123"}
My issue is that the workflow has no way of finding the largest number in that folder, so while I can use a token calculator to add 1 and assign this newly incremented number to the new document being named, I cannot guarantee that I am incrementing the correct number for the naming process. Can anyone help with the logic to find the largest value in that metadata field?
Thank you,
Jason