Actions12
- File Actions
- Template Actions
- Job Actions
Overview
This node interacts with the Json2Doc API to manage files, templates, and document generation jobs. Specifically, for the File resource with the Download operation, it downloads a file from the Json2Doc service using a provided file ID and stores the downloaded file in a specified binary property. This is useful for workflows that need to retrieve and use files stored in Json2Doc, such as downloading generated documents or uploaded files for further processing or storage.
Use Case Examples
- Downloading a file by its ID to use in subsequent workflow steps, such as sending the file via email or saving it to cloud storage.
- Automating retrieval of generated documents after a job completes.
Properties
| Name | Meaning |
|---|---|
| File ID | The ID of the file to download, used to identify which file to retrieve from the Json2Doc API. |
| Binary Property Name | The name of the binary property where the downloaded file will be stored in the node's output data. |
Output
Binary
Contains the downloaded file data stored under the user-specified binary property name.
JSON
fileId- The ID of the downloaded file, confirming which file was retrieved.
Dependencies
- Requires an API key credential for the Json2Doc API to authenticate requests.
Troubleshooting
- Common issues include invalid or missing file ID, resulting in failed download requests.
- API authentication errors if the API key credential is incorrect or missing.
- Timeouts or network errors when contacting the Json2Doc API.
- Error messages from the API are propagated as node errors; ensure the file ID is correct and the API key is valid.
Links
- Json2Doc API Documentation - Official API documentation for Json2Doc, useful for understanding available endpoints and parameters.