You are ing to create a workflow where user can scan to a database, e.g. SQL Server.

Requirements:

  • SQL Server;
  • Random testing document;
  • PC Client or MFP Client.

How to do:

  1. Create a new workflow with the name: “Scan to SQL Server”;
  2. Drag a client capture module (PC client or MFP based on the used client) and configure it  with the following question:
    1. Selected question of type SQL;
    2. Click on the left side "sql" and click on the button "Wizard";
    3. Select the Provider: Microsoft OLE DB Provider for SQL Server;
      1. Insert in the field Data Source: your Server name;
      2. Insert in the field Initial catalog: your DB name;
      3. Insert User e Password in their fields;
      4. Click test to verify the inserted parameters are correct and the connection works then click ok;
      5. Now we just have to select the table and select the column displayed and the column returned;
    4. Before you click save, try if the list is work by clicking "Show list results";
    5. Save all and return the workflow designer.
  3. Drag the Windows File System connector  and configure it with the following settings:    
    1. Path: Insert the same path as of the DB column: "C:Repository"
    2. FileName: insert the variable from the filename question: %FILENAME%
  4. Drag the Database connector and configure it with the following settings:
    1. Select the provider "Microsoft OLE DB Provider for SQL Server"
    2. Fill the following properties:
      1. Data source: the SQLServer name;
      2. Initial Catalog: the DB name;
      3. User and Password: the DB credential (SQL based authentication);
    3. Click test to verify the inserted parameters are correct and the connection works then click ok;
    4. Click the "INSERT" query button
    5. An example of insert query is displayed, customize it as follow: INSERT INTO Document (IdUser], [Status,PathFile,Description)VALUES('%USER%','%VISIBILITY%','C:Repository\%FILENAME%','%DESCRIPTION%');
  5. Save the settings; 

 

You can now try to use the workflow by using the MFP or PC Client. The document will be stored in the specified folder in the Windows file systems and inserted into the target SQL Server.

 -  Example workflow attached.

  - Link to the video: