This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Modules/Crm/Resources/metadata/entityDefs/MassEmail.json
T
2015-09-22 16:26:13 +03:00

104 lines
2.4 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"status": {
"type": "enum",
"options": ["Draft", "Pending"],
"default": "Pending"
},
"storeSentEmails": {
"type": "bool",
"default": false
},
"fromAddress": {
"type": "varchar",
"trim": true,
"view": "crm:views/mass-email/fields/from-address"
},
"fromName": {
"type": "varchar"
},
"replyToAddress": {
"type": "varchar",
"trim": true
},
"replyToName": {
"type": "varchar"
},
"startAt": {
"type": "datetime",
"required": true
},
"emailTemplate": {
"type": "link",
"required": true
},
"campaign": {
"type": "link"
},
"targetLists": {
"type": "linkMultiple",
"required": true
},
"inboundEmail": {
"type": "link"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"emailTemplate": {
"type": "belongsTo",
"entity": "EmailTemplate"
},
"campaign": {
"type": "belongsTo",
"entity": "Campaign",
"foreign": "massEmails"
},
"targetLists": {
"type": "hasMany",
"entity": "TargetList",
"foreign": "massEmails"
},
"inboundEmail": {
"type": "belongsTo",
"entity": "InboundEmail"
},
"queueItems": {
"type": "hasMany",
"entity": "EmailQueueItem",
"foreign": "massEmail"
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
}
}