onOffice icon

onOffice

onOffice custom node for n8n

Template → Get

AI-generated

Overview

This node operation retrieves templates from the onOffice system based on the specified template type and optional filters. It is useful for scenarios where you need to fetch email templates, PDF templates, or other document templates for use in automated workflows, such as sending customized emails or generating documents.

Use Case Examples

  1. Fetching all email templates of a specific category to use in an email campaign.
  2. Retrieving PDF form templates to generate filled documents automatically.

Properties

Name Meaning
Type Specifies the type of template to query, such as mail, pdf, pdfform, pdfletter, or webexpose.
Additional Fields Optional filters and parameters to refine the template query, including email category, specific template IDs, and whether to return a shorter list of email templates.

Output

JSON

  • id - Unique identifier of the template.
  • title - Title or name of the template.
  • subject - Subject line of the email template (if applicable).
  • category - Category of the email template (if applicable).
  • type - Type of the template (mail, pdf, pdfform, pdfletter, webexpose).
  • content - Content or body of the template.

Dependencies

  • Requires an API key credential for onOffice API authentication.

Troubleshooting

  • Ensure the 'Type' property is set correctly; otherwise, the API may return errors or no data.
  • When filtering by email category, note that this only applies to email templates; using it with other template types will have no effect.
  • If specifying template IDs, ensure they are valid and exist in the system to avoid empty results.
  • Check API credentials and network connectivity if the node fails to retrieve data.

Discussion