emailTemplate
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
name | string | Yes | data type=string; maxLen=255 | |
emailSubject | string | Yes | data type=string; maxLen=255 |
htmlFormat
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
header | multiline string | No | data type=multiline string; maxLen=32767 | |
body | multiline string | Yes | data type=multiline string; maxLen=32767 | |
footer | multiline string | No | data type=multiline string; maxLen=32767 |
htmlFormat {
header: ```html
value
```
body: ```html
value
```
footer: ```html
value
```
}plainTextFormat
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
content | multiline string | No | data type=multiline string; maxLen=32767 |
plainTextFormat {
content: ```html
value
```
}advanced
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
staticId | string | Yes | data type=string; maxLen=255This identifier is used in the APEX_MAIL API call to reference this template. | |
versionNumber | enum | No | data type=string; lov=STATICValid values: 1 2 | |
htmlTemplate | multiline string | No | data type=multiline string; maxLen=32767 |
advanced {
staticId: value
versionNumber: "1"
htmlTemplate: ```html
value
```
}subscription
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
master | reference | No | data type=reference; lov=COMPONENT; references=emailTemplate |
subscription {
master: @component
}comments
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
comments | multiline string | No | data type=multiline string; maxLen=4000 |
comments {
comments: ```
value
```
}APEXlang Example
emailTemplate sample (
name: value
emailSubject: value
htmlFormat {
header: ```html
value
```
body: ```html
value
```
footer: ```html
value
```
}
plainTextFormat {
content: ```html
value
```
}
advanced {
staticId: value
versionNumber: "1"
htmlTemplate: ```html
value
```
}
subscription {
master: @component
}
comments {
comments: ```
value
```
}
)