Siebel Tools > Sending Email using escript from a Business Service
Sending Email using escript from a Business Service
Create a function in a Business Service with this code. This can be called from Server Script or a Workflow or also manually from Business Service -> Simulator
var emailBS = TheApplication().GetService("Outbound Communications Manager"); var emailInput = TheApplication().NewPropertySet(); var emailOutput = TheApplication().NewPropertySet();
emailInput.SetProperty("CommProfile", "Communication profile name"); emailInput.SetProperty("MsgToList", "email ids separated by comma"); emailInput.SetProperty("MsgBody", "email content"); emailInput.SetProperty("CommTemplateName", "Template for Quote"); // Email Template Name emailInput.SetProperty("AttachFileList", strFinalFilePath); // Email Attachmenr
emailInput.SetProperty("MsgSubject", "subject"); mailBS.InvokeMethod("SendMessage", emailInput, emailOutput);
|