×
Menu
Index

4.6. Importing documents from SharePoint

 
The SharePoint Import input module takes the documents of a SharePoint library (SharePoint Online or an on-premise server) and adds them to a batch, with the PDF and e-mail options of the other import modules and, if you want, writes back the result in columns of the library. It works interactively from the Scan/Input tab and unattended from a hot folder task.
Requirements: a saved SharePoint connection (Administration tab, System panel, SharePoint Online Connections) with an account that can read the library, and write in it if you update columns or move and delete the imported files, and the .NET Framework 4.8 on the station, used by the connector that talks to SharePoint. The same connection is shared with the SharePoint export module.
Creating a configuration
In the Documents and Image Input toolbar of the Scan/Input tab select SharePoint Import and click Start Input. The window Import documents from SharePoint lists the available configurations; its menu offers New configuration, Copy configuration, Delete and List SharePoint libraries. The configurations are saved with the job and are the ones a hot folder task can choose. Each configuration has these groups of properties:
The buttons of the window: Start imports now into the open batch; Explore opens the library folder in the browser; View documents opens the SharePoint Document Browser, which runs the configuration and lists the files it would import (name, size, folder) with Search again and Edit field..., that sets a column to a value on all the listed files, for example to reset the status and import them again; Finish closes the window.
What happens in a run
ChronoScan does not remember which files it has already imported: a file that still matches the query is imported again in the next run. Take the processed files out of the query with the status column and a CAML filter (for example <Where><Neq><FieldRef Name='Status'/><Value Type='Text'>Processed</Value></Neq></Where>), or with the after-action that moves them to another folder.
Hot folder
In the Tasks/HotFolder tab add a task with the module SharePoint Import and one of the configurations of the job (the ... button edits it). Batches are created one per sweep, or the documents are sent always to the same batch; the modes per folder and per file of the file import modules do not apply. The Run frequency of the task, in seconds, spaces out the queries to SharePoint so that the library is not asked on every pass of the engine; the rest of the options (processing on input finished, export, notifications) are the ones of any task, see HotFolder Tasks. In ChronoScan Enterprise the input server runs the same tasks.
The task log and the Output window record each sweep: the number of documents found by the query, the files downloaded or ignored, the column updates ("Item ... updated to Processed") and the connection errors returned by SharePoint. The connection and its credentials are stored as described in Where data and credentials are stored and Using Microsoft 365 Accounts (OAuth2).