Files
espocrm/application/Espo/Resources/metadata/entityDefs/EmailTemplate.json
bsiggel 127fa6503b chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files
- Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026'
- Added 123 new files from EspoCRM core updates
- Removed 4 deprecated files
- Total changes: 61,637 insertions, 54,283 deletions

This is a routine maintenance update for the new year 2026.
2026-02-07 16:05:21 +01:00

117 lines
2.9 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"audited": true
},
"subject": {
"type": "varchar",
"audited": true
},
"body": {
"type": "wysiwyg",
"view": "views/email-template/fields/body",
"useIframe": true,
"attachmentField": "attachments",
"audited": true
},
"isHtml": {
"type": "bool",
"default": true,
"inlineEditDisabled": true,
"audited": true
},
"status": {
"type": "enum",
"options": [
"Active",
"Inactive"
],
"default": "Active",
"style": {
"Inactive": "info"
},
"maxLength": 8,
"audited": true
},
"oneOff": {
"type": "bool",
"default": false,
"tooltip": true
},
"attachments": {
"type": "attachmentMultiple",
"audited": true
},
"category": {
"type": "link",
"view": "views/fields/link-category-tree"
},
"assignedUser": {
"type": "link",
"view": "views/fields/assigned-user"
},
"teams": {
"type": "linkMultiple",
"audited": true
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
}
},
"links": {
"attachments": {
"type": "hasChildren",
"entity": "Attachment",
"foreign": "parent"
},
"category": {
"type": "belongsTo",
"foreign": "emailTemplates",
"entity": "EmailTemplateCategory"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"orderBy": "name",
"order": "asc",
"textFilterFields": ["name"]
},
"optimisticConcurrencyControl": true
}