MFSQL Connector

FAQ:

  • Frequently asked questions

MFSQL Connector Guide:

  • Introduction to MFSQL
  • Getting Started
  • MFSQL Data Exchange and reporting Connector
  • MFSQL Integration Connector
  • The Connector Framework
  • Version Control
  • Version 5 Development

Blog:

  • List of blogs
    • Advanced updating of Valuelists from external source
    • Align metadata from an external source with data in M-Files
    • Aligning valuelist items with different owners
    • Perform a background operation in SQL on workflow change
    • Building applications around M-Files
    • Certified Application Developer presentation
    • Changing the class of an object
    • Changing from single lookup to multi lookup
    • Considerations for deleted records
    • Considerations for large volume vault
    • Create a scheduled pull from M-Files using SQL Server Agent
    • Creating and using public shared link
    • Creating multiple related objects on file import
    • CRM and Emailer Management
    • Deleting duplicate objects
    • Exporting files from a vault
    • ExternalID versus DisplayID versus Objid
    • Explore all the objects in the vault
    • Get number of records in Class
    • Working with object change history
    • Getting started with a custom application
    • Getting to know MFSQL Connector
    • How to generate a quick follow up list
    • Illegal XML Characters
    • Importing files into M-Files
    • Insert new records from SQL
    • Integration for vendor approval
    • Integration whitepaper
    • Integration with SAGE 200 - Case Management
    • Integration with SAGE 50
    • Integration with test equipment
    • Integration with Vendor Management and Purchasing with Epicor Enterprise
    • Mark for Archiving using Class Table
    • Metadata Management and data cleansing
    • Metadata Management and Realignment Case Study
    • MF-Last-Modified-User in action
    • Moving documents from one class to another
    • Moving metadata from text properties to Valuelist items
    • MultiSelectLookups
    • Near real time reporting
    • Online Ordering of special stock
    • Online Quote System
    • Practical use of logging in Procedures
    • Processing scanned documents
    • Properties with multi lookup datatypes
    • Limitations of real datatype
    • Report designers and the Connector
    • Reports from the extended Event log
    • Restore MFSQL database to a different server
    • RPC over HTTPS setup
    • Setting up a workflow state change
    • Setup Agent Proxy for MFSQLConnect
    • Status report using context menu
    • Table relations - views for reporting
    • Update large tables using batch mode
    • Upgrading to VAF 10.4
    • Updating a multi lookup property on an object
    • Updating incorrect properties across multiple related classes
    • Updating only records that changed
    • Updating millions of records
    • Using delimiter functions
    • Using event handler for SQL action
    • Using hyperlinks with MFSQL Connector
    • Using M-Files External Connector
    • Using spMFClassTableStats
    • Using the External_ID to match third party app tables
    • Using windows authentication
    • Working with Additional Properties
    • Working with checked Out objects
    • Working with date and time
    • Working with Document Collections

SQL Components:

  • Procedures
  • Tables
  • Functions
  • Views
  • Triggers
MFSQL Connector
  • Docs »
  • List of blogs »
  • Creating multiple related objects on file import

Creating multiple related objects on file import¶

In this use case we will review how to setup depended objects when importing a file from an external source such as a scanning process or getting a file into M-Files from a third party system.

This use case is of particular value when the scanned document have complex metadata to be associated with the document or has dependent objects that requires staging in sequence for the file document to be associated with. The M-Files importing tool may not be the best vehicle to accomplish advanced file scans and imports.

The routine to import the scanned document into M-Files and associating the metadata with the object is divorced. The file is scanned and imported using the scanning software, Importing Tool or Folderwatcher. The only key requirements is that a unique reference is available to link the file with the associated metadata. This unique reference can be built into the name of the file when it is saved by the scanning software, or alternatively simple OCR recognition can be used to pick up the unique reference from the content of the file. MFSQL Connector automatically creates a property “MFSQL File Unique Ref” that can be used for updating this unique key. If the name of the file is used to carry the unique reference then we would recommend to populate this special property, in addition to using it for the file name. The name or title of the object is often changed or automated. This could break the link of the file to the underlying metadata during processing.

The metadata related to the file, including details of any dependent objects can then be processed in SQL. It is often feasible for the scanning software to save the scanned document details directly to a SQL table. The metadata may be partially dependent on third party systems. it may be necessary to get some data from M-Files before the metadata of the file can be finalized.

The different stages required for processing would depend on each individual case but in essence would involve pulling the file object metadata into SQL using MFSQL Connector, updating any associated class tables (such as vendor master), get the data from the scanning process, and finally pulling data from the third party system.

All of these processes are then streamed in custom store procedures in SQL to build the related data, create the dependent objects, and update the file metadata with the related properties.

The trigger to start the process is likely to be the importing of the file. We recommend to use MFSQL Connector Context Menu capability to start a SQL procedure to initiate the matching. Context Menu allows for an action to start a context sensitive SQL procedure as a workflow step, event handler or initiated by a user in M-Files by picking an option in the action menu.

Next Previous

© Copyright 2023, Laminin Solutions Ltd

Built with Sphinx using a theme provided by Read the Docs.