You are viewing limited content. For full access, please sign in.

Question

Question

Workflow - Matching field values from Repository to SQL database

asked on October 14, 2015

One of our clients wants to check file from Repository if matched in the Database.

So for example i have 20 documents inside my repository and have field values for 'date' and 'reference number'

And inside my database I have 25 data.

They want to match that 20 documents versus 25 data from database.

Then will generate report that this document with 'reference number' has match the data in inside the database.

0 0

Replies

replied on October 14, 2015

Are you asking if it's possible (yes) or how to do it? Is this a one-time check or would you want to run it periodically. Are we looking at a low number of documents (20) or is the number expected to grow?

0 0
replied on October 14, 2015

On how to do it. I know its possible in Laserfiche. They need to run it periodically. And for the number of documents its just an example. they have an estimated of 1000 pages per year.

0 0
replied on October 29, 2015

Follow up on this :)

0 0
replied on October 30, 2015

You can run a query to get the reference numbers from SQL. Then run a LF search that searches for docs with the given field in the list and build a list of documents.

The workflow below runs the query, builds the results into a double quote-delimited list because the LF field search needs the values in double quotes: {[templateName]:[fieldName] in ("v1","v2","v3")}. Then runs the search and goes through the results and builds another multi-value token containing the field value and the full path of the each document. Then emails it out.

For the email, you want to add the ListOfDocs token and then right-click it and format it as a line-break delimited list so it displays all values.

This is the basic idea, let me know if more details are needed. Everything above assumes Workflow 9.2.1 or higher.

0 0
replied on October 30, 2015

Thanks Miruna.

 

I'll try this out.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.