English
fill_email_template
About 85 wordsLess than 1 minute
2025-12-16
This method allows you to get a filled email template.
Syntax: fill_email_template(templateId, objectId)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| templateId | Email template ID (required) | string | — | — |
| objectId | Main object record ID used for filling (required) | string | — | — |
Example
This method returns a Promise, as shown below:
FxUI.objectApi.fill_email_template('5cef94dfa5083d09dd957955', '5b51b0a0319d19b74dcb46e5').then((data) => {
console.log(data);
// todo what you want
}).catch(err => {
console.log(err);
})Data Structure
{
"subject": "Sample Subject 233", // email subject
"template": "" // HTML after template filling
}