Axelor icon

Axelor

Consume Axelor API

Document Service → File Download

AI-generated

Overview

The Document Service - File Download operation in this n8n node allows you to download a specific file from the Axelor Document Management System (DMS) by its unique ID. This is useful for automating workflows where files stored in Axelor need to be retrieved and processed further, such as archiving documents, sending them via email, or integrating with other systems.

Practical examples:

  • Automatically downloading invoices or reports generated and stored in Axelor.
  • Fetching attachments for backup or compliance purposes.
  • Integrating Axelor-stored files into document review or approval workflows.

Properties

Name Type Meaning
ID Number The unique identifier of the file you want to download. You can find it in the URL.
Query String Additional query parameters to append to the request URL (optional).

Note: Other properties defined in the node are not relevant for the "File Download" operation.

Output

  • The output will contain the downloaded file's data in the json field.
  • If the file is binary, the node may return binary data (e.g., file content), which can be used in subsequent nodes for further processing.

Example output structure:

[
  {
    "id": 123,
    "name": "example.pdf",
    "size": 45678,
    "contentType": "application/pdf",
    // ...other metadata fields
    // Binary data may be available under a special property if configured
  }
]

Dependencies

  • External Service: Requires access to an Axelor instance with the DMS module enabled.
  • API Credentials: Needs valid Axelor API credentials (axelorApi) configured in n8n.
  • n8n Configuration: No additional environment variables required beyond standard credential setup.

Troubleshooting

Common issues:

  • Invalid ID: If the provided ID does not correspond to an existing file, the node may return a "Not Found" error.
  • Authentication errors: Missing or incorrect API credentials will result in authentication failures.
  • Permission denied: The user associated with the API key must have permission to access the requested file.

Error messages and resolutions:

  • "404 Not Found": Check that the ID is correct and the file exists in Axelor.
  • "401 Unauthorized": Verify your Axelor API credentials in n8n.
  • "403 Forbidden": Ensure your user account has sufficient permissions to access the file.

Links and References

Discussion