I am writing a 9.1 scheduled workflow to update all employee files if their information has changed in the HR database. The HR database does not have any fields or dates that signal a change has been made to a record. Instead of searching for all documents with that template and then checking each one individually against the database, I was hoping to query Laserfiche for distinct employee id's (so that I only get 1 row per distinct employee id) and then batch check the documents by employee (thus reducing my database look ups).
I realize I can query the Laserfiche SQL tables directly to achieve this. I also realize I can assign the Employee ID at the parent folder level and then just search on folders. What I am hoping for something in Workflow that allows almost SQL like queries directly against the template fields. Is this type of query possible (without looping through all documents that match the criteria)? If not, can this kind of functionality be added to Workflow in the future and has anyone found a better way to regularly check/update 10000's of documents?