Actions76
- Faktury Actions
- Příjemky Actions
- Prodejky Actions
- Objednávky Actions
- Výdejky Actions
- Pokladní doklady Actions
- Nabídky Actions
- Výroba Actions
- Interní doklady Actions
- Poptávky Actions
- Převod Actions
- Banka Actions
- Zakázky Actions
- Pohyby Actions
- Účetní deník (PÚ) Actions
- Adresy Actions
- Zásoby Actions
- Prodejní ceny Actions
Poptávky → Create Entity
AI-generatedOverview
This node integrates with the Pohoda accounting system, enabling users to perform various operations such as exporting data, creating entities, retrieving company information, and printing reports. Specifically, for the "Poptávky" (Enquiries) resource with the "Create Entity" operation, it allows users to create new enquiry records in the Pohoda system by sending structured XML requests.
Common scenarios include automating the creation of customer enquiries or leads directly from other systems or workflows into Pohoda, streamlining data entry and ensuring consistency. For example, a sales automation workflow could use this node to add new enquiries received via a web form into Pohoda automatically.
Properties
| Name | Meaning |
|---|---|
| XML Output | If enabled (true), the node returns the raw XML response from Pohoda instead of parsed JSON. |
| UTF8 Conversion | If enabled (true), converts the response encoding from Windows-1250 to UTF-8 for proper character display. |
These properties control how the response from Pohoda is returned and encoded.
Output
The node outputs an array of items corresponding to each input item processed. Each output item contains:
- json: Parsed JSON object representing the response from Pohoda after creating the entity.
- If
XML Outputis enabled, the raw XML string is returned insidejson.data. - In some cases (e.g., print operation), binary data such as PDF files may be returned under the
binaryproperty with appropriate metadata (mimeType,fileExtension,fileName).
For the "Create Entity" operation on the "Poptávky" resource, the output JSON contains the response details confirming the creation status or any error messages.
Dependencies
- Requires an API authentication credential with username, password, and base URL for the Pohoda API.
- Uses HTTP POST requests to communicate with the Pohoda XML endpoint.
- Utilizes external libraries for XML building and decoding (e.g.,
iconv-litefor encoding conversion,xmlbuilder2for XML parsing). - The node expects the Pohoda API to support XML-based requests and responses.
Troubleshooting
- Encoding Issues: If special characters appear garbled, ensure that
UTF8 Conversionis enabled to convert from Windows-1250 encoding. - Authentication Errors: Incorrect or missing API credentials will cause authorization failures. Verify the API key/username/password and base URL are correctly configured.
- Unsupported Resource or Operation: Attempting to create entities for unsupported resources will throw errors indicating "Not implemented for [resource]".
- API Response Errors: If Pohoda returns a non-"ok" state, the node throws an error with the message from the API's
@notefield. Check the request payload and API documentation for required fields. - Network Issues: Ensure the Pohoda API endpoint is reachable from the n8n environment.
Links and References
- Pohoda API Documentation (official): https://www.stormware.cz/en/developers
- XML Encoding Reference: https://en.wikipedia.org/wiki/Windows-1250
- n8n HTTP Request Node Documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
