Actions12
- File Actions
- Template Actions
- Job Actions
Overview
This node interacts with the Json2Doc API to manage document templates. Specifically, the 'Template - List' operation retrieves a list of document templates from the Json2Doc service. It supports filtering by search terms, sorting by creation date, update date, or name, and sorting order (ascending or descending). Users can choose to return all templates or limit the number of results. This operation is useful for scenarios where users need to fetch and display available document templates for further processing or selection in automated workflows.
Use Case Examples
- Fetch all document templates to display in a UI for user selection.
- Retrieve a limited number of templates sorted by their creation date to process the most recent ones.
- Search templates by name or description to find specific templates for document generation.
Properties
| Name | Meaning |
|---|---|
| Return All | Whether to return all results or only up to a given limit. |
| Limit | Maximum number of templates to return when 'Return All' is false. |
| Additional Fields | Optional filters and sorting options for listing templates. |
Output
JSON
- ``
id- Unique identifier of the template.name- Name of the template.description- Description of the template.filename- Filename of the template document.createdAt- Timestamp when the template was created.updatedAt- Timestamp when the template was last updated.
Dependencies
- Json2Doc API key credential for authentication.
Troubleshooting
- Ensure the API key credential is correctly configured and has the necessary permissions to access templates.
- If the node returns an empty list, verify the search term and filters are correct and that templates exist in the Json2Doc account.
- API rate limits or network issues may cause request failures; check connectivity and retry if needed.
- Error messages related to pagination or limits may occur if 'Return All' is false and the limit exceeds allowed values; adjust the limit accordingly.
Links
- Json2Doc API Documentation - Official API documentation for Json2Doc, including endpoints for managing templates.