Minimum Role Permission
Email Templates: Manager
The data for the new email template
const data = {
name: 'my template',
organisationId: 'abc123',
environments: [
{
template: 'My email template {{custom:my-custom-tag}}',
formsAppEnvironmentId: 1,
},
],
type: 'FORM_SUBMISSION_EVENT_PDF',
}
const emailTemplate = await emailTemplates.createEmailTemplate(data)
// Use emailTemplate here...
Minimum Role Permission
Email Templates: Read Only
The id of the email template
Minimum Role Permission
Email Templates: Read Only
Search options
Minimum Role Permission
Email Templates: Manager
The data for the email template to update
const data = {
id: 1,
name: 'my updated template',
organisationId: 'abc123',
environments: [
{
template: 'My email template {{custom:my-custom-tag}}',
formsAppEnvironmentId: 1,
},
],
type: 'FORM_SUBMISSION_EVENT_PDF',
}
const emailTemplate = await emailTemplates.updateEmailTemplate(data)
// Use emailTemplate here...
Example