Quantcast
Channel: SCN : Discussion List - SAP Sourcing
Viewing all articles
Browse latest Browse all 1416

Error while triggering the custom mail template

$
0
0


Hi All,

 

I have created a custom mail template and added that template to the new mail configuration. I also wrote a script, target being Post-Save but I'm encountering error. Below is the screenshot of the error.

 

Capture.PNG

Code snippet goes as follows :

Properties params = new Properties();

params.put(new String("TOKEN1"), doc.getDisplayName());

String[] recipients = {"email_ID"};

//recipient=session.getAccount();
sender = session.getAccount();

mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_CUSTOM_TEMPLATE1);

NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);

 

Can anyone help me in getting rid of this error.

 

Reference Blog : http://scn.sap.com/community/sourcing/blog/2012/12/21/sap-sourcing-custom-mail-message-templates


Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>