Shopware icon

Shopware

Shopware

Actions778

Mail Template → Create Mail Template

AI-generated

Overview

This node operation allows users to create a new Mail Template in the Shopware system. It is useful for automating the creation of email templates that can be used for various communication purposes such as marketing campaigns, notifications, or transactional emails. Users can specify details like the template's ID, type, subject, content in HTML and plain text, sender name, description, and other metadata.

Use Case Examples

  1. Creating a new promotional email template with custom HTML content and subject line.
  2. Automating the creation of system notification email templates with predefined sender names and descriptions.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id Unique identifier for the mail template.
Mail Template Type Id Identifier for the type of mail template.
System Default Boolean flag indicating if the template is a system default.
Sender Name Name of the sender displayed in the email.
Description Description of the mail template.
Subject Subject line of the email.
Content Html HTML content of the email.
Content Plain Plain text content of the email.
Custom Fields Custom fields in JSON format for additional data.
Created At Timestamp for when the template was created.
Updated At Timestamp for when the template was last updated.
Translated Translated content in JSON format.
Mail Template Type Detailed JSON object representing the mail template type and related nested data.
Media JSON array representing media associated with the mail template.
Request Options Node execution options such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • id - Unique identifier of the created mail template.
  • mailTemplateTypeId - Identifier of the mail template type.
  • systemDefault - Indicates if the mail template is a system default.
  • senderName - Name of the sender in the mail template.
  • description - Description of the mail template.
  • subject - Subject line of the mail template.
  • contentHtml - HTML content of the mail template.
  • contentPlain - Plain text content of the mail template.
  • customFields - Custom fields associated with the mail template.
  • createdAt - Creation timestamp of the mail template.
  • updatedAt - Last update timestamp of the mail template.
  • translated - Translated content of the mail template.
  • mailTemplateType - Detailed mail template type object with nested related data.
  • media - Media objects associated with the mail template.

Troubleshooting

  • Ensure all required fields (Id, Mail Template Type Id, Subject, Content Html, Content Plain) are provided to avoid validation errors.
  • Verify JSON format correctness for fields like Custom Fields, Translated, Mail Template Type, and Media to prevent parsing errors.
  • Check API credentials and endpoint URL configuration to ensure successful connection to the Shopware system.

Discussion