Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Description

Get an email notification template by name.

Package Details

Interface

IEmailNotificationManager

Syntax

Task<EmailNotificationTemplateDto> GetEmailNotificationTemplateByName(string name, bool includeDeleted = false)

Returns

Task<EmailNotificationTemplateDto>

API Endpoint

GET

/api/v1/notification-template?templateName={templateName}f&includeDeleted=false

Parameters

Note:
If the parameters aren’t provided then it will return a list of all email notifications.

Parameter

Description

Parameter Type

templateName

The email notification template name.

Query string

includeDeleted

Only valid when {templateName} is passed. Without {templateName} this value will always be ignored and the output result will not include deleted templates.

Query string

Returns

200 OK - When successful

400 Bad Request - Unable to get the template

Example

// get one template
const string name = "your template name";
var template = await emailNotificationManager.GetEmailNotificationTemplateByName(name);

  • No labels