Shopware icon

Shopware

Shopware

Actions778

Mail Template Type → Create Mail Template Type

AI-generated

Overview

This node operation allows users to create a new Mail Template Type in the Shopware system. It is useful for automating the creation of mail template types with specific configurations such as ID, name, technical name, available entities, custom fields, template data, timestamps, translations, and associated mail templates. This can be applied in scenarios where businesses want to programmatically manage their email templates for marketing, notifications, or transactional emails within Shopware.

Use Case Examples

  1. Creating a new mail template type with a unique ID, name, and technical name for a marketing campaign.
  2. Adding custom fields and template data to a mail template type for personalized email content.
  3. Setting up mail templates linked to the mail template type for automated email dispatch.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the mail template type.
Name Name of the mail template type.
Technical Name Technical identifier for the mail template type.
Available Entities JSON object defining available entities related to the mail template type.
Custom Fields JSON object containing custom fields for the mail template type.
Template Data JSON object with template data for the mail template type.
Created At Timestamp string indicating when the mail template type was created.
Updated At Timestamp string indicating when the mail template type was last updated.
Translated JSON object containing translations for the mail template type.
Mail Templates JSON array of mail templates associated with the mail template type.
Request Options Node settings for request options such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - Unique identifier of the created mail template type.
  • name - Name of the created mail template type.
  • technicalName - Technical name of the created mail template type.
  • availableEntities - Available entities related to the mail template type.
  • customFields - Custom fields defined for the mail template type.
  • templateData - Template data associated with the mail template type.
  • createdAt - Creation timestamp of the mail template type.
  • updatedAt - Last update timestamp of the mail template type.
  • translated - Translations for the mail template type.
  • mailTemplates - Mail templates linked to the mail template type.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Name, Technical Name) are provided to avoid validation errors.
  • If the response is empty or incomplete, check the '_response' property to set the desired response detail level.
  • For SSL certificate errors, consider enabling 'Ignore SSL Issues' if safe to do so.
  • Proxy settings must be correctly configured if used, otherwise requests may fail.
  • Timeouts can occur if the server is slow; increase the timeout setting if necessary.

Links

Discussion