Nuxeo Add-Ons

How to Enable CSV Import on a Custom Document Type

Watch the related courses on Nuxeo University

The Nuxeo CSV addon enables users to proceed to a bulk import of documents in the Nuxeo Platform using a CSV file. This addon enables users to create documents with their metadata filled in, to import files with their main attachment or to create a tree structure.

If you installed the Nuxeo CSV add-on from the Nuxeo Marketplace, you'll probably want to enable CSV import on the document types you defined, either in Studio or with some code. Here is how to do that.

  1. In Studio, on the left side, under Configuration, in the Advanced Settings menu, click on XML Extensions.
  2. Click on New to create a new extension.
  3. Give it an ID and click on Next.

    You may want to check the Studio naming conventions.

  4. Paste the following content in the text area and fill in the <type> tag with the ID of the document type on which you want to enable CSV import.

    <require>org.nuxeo.ecm.platform.actions.ActionService</require>
    <extension target="org.nuxeo.ecm.platform.actions.ActionService"
      point="filters">
      <filter id="importFile" append="true">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>YourCustomTypeID</type>
        </rule>
      </filter>
    </extension>
    
  5. In the XML extension, put as many <type> tags as documents types on which CSV import should be enabled.

  6. Click on Save. After you update your Nuxeo Platform instance, your document type(s) will have the Import a CSV file button.

If you don't want to use Studio and prefer using your IDE, you can just add a contribution with the XML above.


 
2 months ago Loubna Benzaama Fix Showcase Content add-on doc
3 years ago Manon Lumeau 16
3 years ago Frantz Fischer 15
3 years ago Ronan Daniellou 14 | improved path description to 'XML extension'
4 years ago Solen Guitter 13
4 years ago Solen Guitter 12
4 years ago Solen Guitter 11
4 years ago Solen Guitter 10
4 years ago Solen Guitter 9
5 years ago Solen Guitter 8
5 years ago Solen Guitter 7
5 years ago Solen Guitter 6
5 years ago Solen Guitter 5
5 years ago Solen Guitter 4 | Added related content
5 years ago Solen Guitter 3
5 years ago Solen Guitter 2 | Use several <type> tags instead of <rule> to enable CSV import on several doc types
5 years ago Solen Guitter 1
History: Created by Solen Guitter

We'd love to hear your thoughts!

All fields required