netdocuments®

Information

What does this tool do?

In short, it copies documents from and (if switched on) to NetDocuments, to and from the local computer. Safely, efficiently and – where needed – in great detail.

Export

What you get

  • The official version of each document, as ordinary files in folders like Cabinet/Client/Matter/Folder/Document.docx.
  • No IDs in the file names, except when two documents would otherwise get the same name.
  • A document filed in more than one folder is written once, in the first of them.
  • Each file is exactly the one NetDocuments has stored. The tool compares the file's checksum (SHA‑256) with the one ND gives.
  • Names that do not work in Windows are changed. In Extended, each change is listed in names.csv in the workspace's folder, with the original name beside the new one; the same file lists every document with its path and its modified date in NetDocuments. This is how the names are changed:
    • Characters that Windows does not allow (< > : " / \ | ? *) become _: “Avtal 2024/25: utkast?.docx” is written as “Avtal 2024_25_ utkast_.docx”.
    • A full stop or space at the end of a name is removed, and names that Windows reserves (for example CON and AUX) get a _ in front.
    • If two documents have the same name in the same folder, the second gets its document ID in brackets: “Avtal (4818-2233-1122).docx”. Upper and lower case count as the same, as in Windows.
    • Paths that are too long for Windows are shortened automatically. The folder names are shortened first, never below 12 characters, and a single name may be at most 250 characters.
    • You set the limit for the whole path yourself and can switch the shortening off; paths over the limit are flagged all the same.
  • How a path that is too long is shortened. The limit applies to the whole path, including the output folder (250 characters unless something else is set). First the cabinet folder and the client folder are shortened to at most 60 characters. Then the longest folder name along the path is shortened, down to the second longest, until there is room left for the file names; a folder name never becomes shorter than 12 characters. Last, the file name is shortened so that it fits. Names are shortened at the end, and the file extension (.pdf, .docx) is always kept. In Extended, every shortened name is listed in names.csv. Example, from 414 to 250 characters:
    Before:
    C:\Users\anna.svensson\Documents\Export\Klienter\1002 - Stavanger Fastighets- och Förvaltningsaktiebolag i likvidation (tidigare Stavanger Bygg)\1002-101 - Förvärv av kontorsfastighet i kvarteret Fyrtornet, Göteborg\Due diligence\Avtal och bilagor från säljarens juridiska rådgivare under förhandlingarna 2023-2024\Hyresavtal\Hyresavtal med samtliga hyresgäster inklusive tilläggsavtal och sidoöverenskommelser.pdf
    
    After:
    C:\Users\anna.svensson\Documents\Export\Klienter\1002 - Stavanger Fastighets- och Förvaltningsaktiebolag i li\1002-101 - Förvärv av kontorsfastighe\Due diligence\Avtal och bilagor från säljarens juri\Hyresavtal\Hyresavtal med samtliga hyresgäster.pdf

Documents that are in no folder

Documents that lie directly in a workspace, outside the folders, are sorted as follows:

  • If the document is found by one of the workspace's saved searches or filters, for example e-mail under a search folder “E-post”, it goes to a folder that gets the search folder's name. If the same document is found in several search folders, it is exported only once, in the search folder whose name comes first in alphabetical order.
  • The others go to the folder _Unfiled.
  • A document that is also in a real folder stays there. A search folder like E-post can therefore hold fewer files on disk than ND shows.
  • The line SEARCH_FOLDERS in the tool's settings file can limit which saved searches count.

“Folder based cabinets”

In a cabinet without workspaces you choose folders instead. Open the folder tree, tick the folders you want and add them to the basket. A ticked folder comes with all its subfolders, except those you do not have access to.

Documents that are in no folder are not exported. If your cabinet requires everything to be in folders, there are such documents only if a folder has been deleted without its contents.

Before a large export

  • The administrators of your repository may get e-mail. ND's Activity Threshold sends the message “Download Threshold Exceeded” to all of them after a certain number of downloads in one and the same login (2,000 unless it has been changed), and again each time the number is reached. To avoid this, ask your administrator to untick Download document/s under Activity Threshold in Information and Settings before the export, and to tick it again afterwards.
  • Tell IT. ND's own export is limited to one chosen group and leaves a trail in the Export folder. This tool needs only the View right, so the IT department may want to know that it is used. Each run is logged on this computer.
  • You can mix workspaces and folders from several cabinets in the same basket and export them in one run. Everything in the basket must, however, belong to the same repository, which in practice should not matter.

More in Extended

  • Size report. Counts documents, versions and size for what is in the basket, without downloading anything. Do run it before a large export, to see how large it will be. The result is saved as a CSV file in the output folder, with the date and time in its name, and the page shows where the file is when the report is done.
  • Single folders. A folder you choose lands where an export of the whole workspace would put it. The whole workspace is read all the same, because the folder's path and names depend on the rest. In a very large workspace that takes a while, even for a small folder. Documents directly in the workspace, outside the folders, do not come with a chosen folder.
  • A saved search on its own takes everything it finds in its workspace. Results outside the workspace are left out, and the tool shows how many. ND returns at most 10,000 results. The basket warns at that number, since the result may be cut off. If you export the whole workspace, nothing is lost.
  • Count and size in the basket. Folders show theirs at once. Workspaces and saved searches show them only after you have run a size report.
  • Long paths. You set the limit for the whole path, including the output folder. Paths over the limit are always flagged, and shortened unless you untick that. Our recommendation: keep 250 and leave the shortening switched on. By default Windows handles at most 260 characters, and many programs, File Explorer and Office among them, have trouble with longer paths even where Windows has been set to allow them. Excel copes with at most 218 characters. Two things to bear in mind:
    • Choose a short output folder, for example C:\X: that leaves more room for the names, and fewer need to be shortened.
    • If the export is later to be moved to a “deeper” folder, for example on a network drive, lower the limit by as many characters as the new location is longer. Otherwise the paths will be too long after the move.
  • Add from a CSV. Takes a list from another system, e.g. from an existing PMS in the scenario where someone responsible for projects leaves: a column of client keys, matter keys or both. A row with only a client takes all the client's workspaces. A row with a matter also takes every other workspace with the same client and matter number, for example one left behind when a key was changed. Other columns are ignored. Excel can turn 001 into 1, so check carefully how the keys are saved.
  • A record for re-import. Tick it and a _metadata.json is written per workspace or folder, with original names, profile values and checksums. With it the export can be brought back later in its original form (names that were shortened in the export then get their original names back).
  • Pack into ZIP files. In step 4 you can choose to have the export packed into ZIP files of at most 1.8 GB (for Mimecast), 4 GB or 10 GB each. The files stay as they are, and the ZIP files go in a folder of their own in the output folder. A folder is split between ZIP files only if it does not fit in one, and volumes.csv then says so. Each ZIP file can be opened on its own. The files are packed without compression, so it is quick and the size is exact.

Import

This section applies when import is switched on in the tool's settings.

How it goes

  1. Choose what. Drop one or several folders from the computer into the tool, or choose a folder. Each folder becomes a folder in the workspace, with everything in it.
  2. Choose where. A workspace in NetDocuments. If it does not exist yet, open it once in ND first: the tool does not create workspaces.
  3. Check. The check shows what would come in, what is there already and what is left out. It changes nothing.
  4. Import. Only now is anything transferred to ND.

What the import does

  • It only adds. Nothing already in ND is changed, moved or deleted.
  • A file that is already in the same folder, with the same name and the same contents, is skipped. So you can run the same import again without risk of duplicates.
  • A file with the same name as an existing document but with other contents becomes a new document beside the old one. It never replaces it.
  • Folders that are there already are reused. Those missing are created.
  • The documents get the workspace's profile, for example client and matter, and keep the file's modified date.
  • Each uploaded file is checked against the checksum that ND answers with.
  • The tool cannot remove what has been imported. That is done in ND.
  • Folders with more than 500 subfolders are split up. ND allows at most 500 subfolders in a folder (the number of documents is unlimited). If a folder on the computer has more, the import adds an extra level of numbered group folders, with at most 500 subfolders in each, sorted by name. The check shows the split before anything is imported. If the same import is run again, the tool recognises the group folders: what has already come in is skipped and new subfolders are put in a new group, numbered onwards. Example: the folder Clients with 1,200 subfolders becomes:
    Clients\
        Clients (1–500)\        ← subfolders 1–500 in name order
        Clients (501–1000)\     ← subfolders 501–1000
        Clients (1001–1200)\    ← the rest
  • If the connection breaks just as a file has been sent, there is no telling whether it arrived. It is then listed as unconfirmed and not sent again automatically. Wait a minute or so, then click Check again: the check then shows whether the file is in ND, and if not it can be imported again.

What is left out

  • Temporary files and lock files, for example those Office creates while a document is open.
  • System files and system folders from Windows and Mac, shortcuts and incomplete downloads.
  • Files with no file extension, empty files (0 bytes) and file types that ND does not accept (see ND Support).
  • File types and file sizes that your administrator may have blocked in the tool's settings.
  • Links to other folders are never followed.
  • Files >2 GB, unless your environment is set to accept them.

The check shows how many files are left out and why. The administrator can also set a ceiling on how many files or how much data one import may cover. If the import goes over the ceiling, the check says so and nothing is imported.

“Folder based cabinets”

In a cabinet without workspaces you import into a folder. Pick it in the folder tree: any folder you can see, at any depth, your private folders too. The tool makes no top-level folder, and the Cabinet Inbox is not offered.

The documents get the folder's profile, if it has one, and the access rights the cabinet gives a document filed there; the tool sets neither. The tool says which before you check.

More in Extended

  • Bring an export back. An export made with this tool can be chosen directly and goes back with its original names.
  • A folder on the computer where the tool runs can be given by its path, instead of being dropped in the browser.
  • The check's result is shown row by row.

Long runs: can I leave the computer?

An ordinary export/import, of a matter or a few folders, normally needs none of what follows: the job is done in a few minutes while you wait or do something else at the computer. For larger jobs that take an hour or more – especially if you plan to leave the computer meanwhile – please read on.

The work is done by the tool in its terminal window, not by this page. One exception: when you import folders that you have dropped or chosen in the browser, it is the page that sends the files.

Fine

  • Close the browser tab or the window during an export. The run goes on. Open this page again to follow it.
  • Leave the computer, as long as it is on and awake.

Keep the tab open

  • During an import of dropped or chosen folders. The page sends the files, so the tab must be open until the import is done. The browser asks before you leave the page.

Pauses the run

  • Sleep mode, which a laptop usually enters when the lid is closed. When the computer wakes, the tool tries again for a couple of minutes while the network comes back, and then carries on.
  • Before a long run: plug the laptop in and set it not to go into sleep mode.

Stops the run

  • Closing the terminal window, pressing Ctrl+C, shutting down or restarting the computer.
  • Nothing is lost. After an export: start the tool, log in, choose the same output folder and export again. Finished documents are skipped. After an import: check and import the same folders again. What already came in is skipped.
  • If the login cannot be renewed, the run stops by itself. Log in again and continue in the same way.

Data and security

The tool runs on this computer only. It communicates with NetDocuments (the ND API) and with your browser on localhost, nothing else. No data goes to Sicklaskiftet or anyone else.

Login

  • You log in on ND's own login page (ND). The tool never sees your password.
  • The access exists only in the tool's memory and is gone when the tool is stopped. Every start requires a new login.
  • The tool asks for the rights …. Export needs read and lookup. Import also needs edit and organize, which are used only to add documents and folders. Your own rights in ND still decide what you can see and do.

Saved on this computer

  • In the output folder: the exported documents. In Extended also a names.csv per workspace and, if you tick it, a _metadata.json. All of this contains real names: treat the folder like the documents themselves.
  • Reports: CSV files with IDs, keys and numbers. Names only if you tick it. An export's list of long paths is in the output folder and contains the paths.
  • The basket, basket.json: IDs only, so that it is still there at the next start.
  • The logs, exported.jsonl for export and imported.jsonl, next to the tool, for import: IDs, version, size, result and time. No names.
  • The browser remembers only display choices, such as language and dark mode.
  • The settings file .env contains the app's secret (CLIENT_SECRET). Do not share it.

Only in memory

  • All names shown on the page (workspaces, folders, clients, matters) exist only as long as the tool is running.
  • ND's own error messages can contain names. They are shown on the page and in the terminal window but are not saved.
  • The page can be reached only from this computer (localhost), and the tool answers only its own page. The certificate is the tool's own, hence the browser's warning.

Choose a folder

Folders on the computer the tool runs on.

FolderDocumentsStored size

Add from a CSV

Matched against the loaded cabinet. The file stays in your browser; only the ids of the workspaces you add go to the tool.

RowClientMatterFound