Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to export Document Collection members in M-Files

Last updated on 24 July 2025 · 3 min read

Admin

Question

How to export document collection contents (files and/or metadata)?

Details

Document collections are, effectively, a place to link several documents, they are a collection of shortcuts. They do not contain the actual objects (documents) and their separate metadata (as each of those objects will have separate metadata). This is the key difference between them and multi-file documents which contain several files with one metadata.

Thus, a document collection is an object without files and with its own separate metadata, and the files it "contains" (its members), and their metadata are separate related objects to it.

Therefore, document collections on their own do not export their members - neither with a client-side search results export, nor with a one-time replication export.

Solution

The easiest way to export document collection contents is to create a Document Collections View.

First, make sure that the Document Collection object type is allowed to be used as a grouping level in Views. You can do this from M-Files Admin:

  1. Navigate to M-Files Admin and to the Vault's 'Metadata Structure (Flat View)'
  2. Select 'Object Types' and then right-click the 'Document collection' to open the 'Properties'
  3. On the 'General' tab, make sure the 'Allow this object type to be used as a grouping level in views' is chosen and click OK

Next, create a new View with the following settings:

Now navigate to the View you just created and choose the Folder you want to export.

Press the Alt button on your keyboard to make the menu bar visible.

Click on 'File' and then choose 'Export'.

Follow the instructions on the pop-up window and your export is done.

Other Situational Solutions

You can use a few approaches to get the contents of a document collection, depending on the use case:

  • Right click the document collection > select Collection Members > select the members you want to get (e.g., with Ctrl+A you can select all of them) > copy them (e.g., right click and select Copy) > paste the files in a convenient place (such as the desktop of your computer).
    • This will get only the files, no metadata. Monitor the release notes for the implementation of enhancement with ID 11026 to allow the export of metadata of document collection members.
  • Create a view or a search that will list the actual objects from that collection (e.g., use a common metadata shared by the files) and then use the client-side export.
    • This requires a unifying filter that produces exactly the objects you need.
  • In a similar fashion, prepare a filter (search) that gets those files (not only the document collections) and use a one-time export. Note that the package you get from that is designed for a similar import into another vault, and metadata and files are placed in a more complex structure on the disk, so this may not be suitable for direct consumption.
    • This requires a unifying filter that produces exactly the objects you need.
  • Use multi-file documents or views/saved searches, if applicable/possible, instead of document collections.
    • This may require altering the metadata structure of the vault.

See if improvement with ID 12331 has been implemented (check the release notes), whose goal is to allow exporting of related objects from a view.

Still need help?