Pohoda Node icon

Pohoda Node

Stormware Pohoda Integration Node

Pohyby → Print

AI-generated

Overview

The Pohoda Node integrates with the Stormware Pohoda accounting system, enabling automation of various accounting and business data operations. Specifically, for the Pohyby (Movements) resource with the Print operation, this node allows users to print reports related to accounting movements.

Typical use cases include:

  • Automatically generating and printing accounting movement reports based on specific record IDs and report templates.
  • Saving generated reports as PDF files locally or processing them further in workflows.
  • Optionally deleting the generated file after printing to manage storage.

For example, a user might automate the printing of a daily movement report by specifying the report ID and record ID, saving it as "daily_movements.pdf", and then automatically removing the file after printing.

Properties

Name Meaning
ID záznamu Item Row ID: The identifier of the specific record (movement) to print.
ID sestavy Report ID: Identifier of the report template to use for printing. This value is found in report properties.
Název/cesta k souboru File name/path: The path and filename where the printed report will be saved (e.g., "n8n.pdf").
XML Output Boolean flag indicating whether to output raw XML response instead of parsed data.
UTF8 Conversion Boolean flag to convert the response encoding from Windows-1250 to UTF-8.
Delete File After Print Boolean flag indicating whether to delete the saved file after printing is completed.

Output

The node outputs JSON data representing the result of the print request. Depending on the XML Output property:

  • If XML Output is enabled, the raw XML response from the Pohoda API is returned in the json.data field.
  • Otherwise, the node parses the response and returns structured JSON data about the print details.

Additionally, if the print response includes a PDF attachment, the node outputs this as binary data with:

  • data: The PDF file content.
  • mimeType: "application/pdf".
  • fileExtension: "pdf".
  • fileName: The original filename from the response.

This allows downstream nodes to access the generated PDF report directly.

Dependencies

  • Requires an API authentication credential for the Pohoda system (an API key or username/password).
  • Uses HTTP requests to communicate with the Pohoda XML API endpoint.
  • Depends on external libraries for XML building/parsing and character encoding conversion.
  • The node expects the Pohoda API base URL and credentials to be configured in n8n credentials.

Troubleshooting

  • Common issues:

    • Incorrect or missing report ID or record ID may cause the print request to fail.
    • Network or authentication errors when connecting to the Pohoda API.
    • Encoding issues if UTF8 conversion is disabled but the response contains Windows-1250 encoded characters.
  • Error messages:

    • Errors returned from the Pohoda API are surfaced with their message notes.
    • If the response state is not "ok", the node throws an error with the provided note.
    • HTTP request failures or invalid credentials will cause node execution to fail.
  • Resolutions:

    • Verify that the report ID and record ID correspond to valid entries in Pohoda.
    • Ensure API credentials are correct and have sufficient permissions.
    • Enable UTF8 conversion if you see garbled characters in the output.
    • Check network connectivity and API endpoint availability.

Links and References

  • Stormware Pohoda Official Website
  • Pohoda XML API documentation (usually available via Stormware support or developer resources)
  • n8n Documentation on creating custom nodes and handling binary data

This summary focuses on the Pohyby resource's Print operation, describing how to configure and use the node to generate and handle printed reports from the Pohoda accounting system.

Discussion