Skip to Content
Author's profile photo Former Member

Sending Emails from Message Templates in Custom Tasks

Taking the blog Assignment Notification task, customization and custom messages one step further, here is an explanation how to send emails, which are based on the message templates editor in Web Dynpro, in all different kind of tasks.

The basis therefore is the chapter Sending custom messages.

There is no real need to create your own message class for your custom emails, so first, create an email message template in Web Dynpro:


Create a custom task like described in Sending custom messages. As recommendation, put the NOTIFICATIONTASKID into the NOTIFICATION Repository as task reference, and reference to it in the job.



That’s all.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Short and to the point! 🙂

      I just wanted to mention that there is one reason (there was two) why I used a custom messageclass in my document.

      The first which is still valid is that I don't want it to be selectable as a notification message in an approval task. And every MX_APPROVALS class message is selectable in the initial/approver/escalation/timeout/... dropdowns.

      If this isn't a problem for the implementation then this is a very nice shortcut.

      The second reason was that version 8 of IdM has an SAP Notification package with built in scripts and templates for the message-classes that we ship, and we wanted to be able to maintain and update these with future releases. This probably does not apply anymore because there's a new "User Customized" flag on the templates.