Dalet Flex documentation has moved!
This page is no longer actively maintained. For the latest documentation, please visit us at our new support portal: https://support.dalet.com
Message templates are used to specify and format messages that are to be sent to users when various events occur. They can support plain text and HTML formatting, and distribution to both email and SMS services. They are more commonly used within message-based notification based event handlers.
| Property | Support | Explanation |
|---|---|---|
| Scope | Account | The scoping of this object |
| Visibility | ![]() |
Whether the object supports visibility |
| Plugins | ![]() |
Supports plugins |
| Extended Config. | ![]() |
Whether the object has an extended configuration tab |
| Scripting | ![]() |
Whether the object can be configured using scripting |
| Enable / Disable | ![]() |
Whether the object can be enabled and disabled |
| Start / Stop | ![]() |
Whether the object can be started and stopped |
| Copy | ![]() |
Whether the object can be copied |
| Export / Import | ![]() |
Whether the object can be exported and imported |
| Delete | ![]() |
Whether the object can be deleted |
| Unique Name | ![]() |
Whether the object name must be unique within its scope |
| Variants | ![]() |
Whether the object supports variants |


Once you have created your new message template you must set up a template. The template comprises the content and formatting for your message.



You can add images (e.g. company logos) to your message templates if you wish.
![]()

In order to send your message template to a user, you must create an event handler.







In the User field, you can select a specific user from the drop down. That user will then receive the message template you have created. You can select multiple users by clicking the Plus icon.

In the Expression field, you can enter an evaluated expression that resolves to a User/Group Id of the recipients of the message. You can enter multiple expressions by clicking the Plus icon. See the required syntax below.



It is convenient to send a mail to user or group using an evaluated expression. The required syntax depends on your Dalet Flex version.
For Dalet Flex versions up to 2021.4.0 (Mail Dispatcher plugin):
User Enabled Event Handler - #{event.flexManagedObject.id}
Password Reset Event Handler - #{event.mioObject.name}
For Dalet Flex versions from 2021.5.0 (Mail Dispatcher V2 plugin):
User Enabled Event Handler - #{event.mioObject.id}
Password Reset Event Handler - #{event.mioObject.id}
If you wish to embed the icon image for the Dalet Flex object you are referencing, you can use the following scripting:
```
<img src="https://#{event.mioObject.Account.hostname}.@[domainName]/${event.mioObject.iconURL}" alt="" />
```
In this context we are setting the domain name (@[domainName]) from Dalet Flex as a system property.
​Scenario: On ingesting the asset or on modifying the metadata value of an asset, the user should be notified by an asset link.
In order to create the Dalet Flex asset link to the user in message body, add the following expression in the message body or the message template:
```
#{httpBaseUrl}/#mio=assets%2Casset%2Cindex.jsp%Fid%3D#{asset.id}
```

