Please consider the environment before printing this Page. Go Eco.
Powered by MaxBlogPress 
Home » Server Administration, Siebel Knowledge, Siebel Scripting

Email via Siebel Scripting or Object Interfaces Using Outbound Communication Manager

14 May 2009 210 views One Comment



Narsimha Rao DHow Do You Send Email via Siebel Scripting or Object Interfaces Using Outbound Communication Manager                  

 

The Communications Outbound Manager processes outbound communications, for email, fax, wireless message, or page channels. It also supports outbound capabilities for Siebel Email Response and for the Send Email, Send Fax, and Send Wireless Message commands.

For further information, refer to Siebel Bookshelf version 7.5.x > Siebel Communications Server Administration Guide > Administering Siebel Communications Server > Administering Communications Outbound Manager.

Here is the eScript sample code:
//—-start

//instantiate the business service and the propertysets

var bs = TheApplication().GetService(“Outbound Communications Manager”);
var inputs = TheApplication().NewPropertySet();
var outputs = TheApplication().NewPropertySet();

//Communication profile to be used – must be must be a current profile defined in the application
var CommProfile = “MyProfile”;

var MsgToList = “s003@myexchangeserver.zeb.com”;
var MsgBody = “Hello testing hello! How are you today?”;
var MsgSubject = “Testing Message”;

//Where C:\ on the Siebel Server or the Siebel Client file system? Or where in a remote client?

var AttachFileList = “c:\\test.txt”;

inputs.SetProperty(“CommProfile”,CommProfile);

//for web client use ‘Remote’ instead of ‘Local’
inputs.SetProperty(“ProcessMode”,”Local”);

inputs.SetProperty(“MsgToList”,MsgToList);
inputs.SetProperty(“MsgBody”,MsgBody);
inputs.SetProperty(“MsgSubject”,MsgSubject);

inputs.SetProperty(“AttachFileList”,AttachFileList);

bs.InvokeMethod(“SendMessage”,inputs,outputs);

inputs = null;
outputs = null;
bs=null;

//—-end

NOTE: The sample code must be thoroughly tested before implementing in the production environment.The above code can be used via Siebel VB or Siebel Object Interfaces.

NOTE: The two arguments AttachFileList and AttachNameList are hiddenarguments belonging to the SendMessage method. Consequently it is possible to use these arguments, but they are technically not supported. As a result the sending of emails with attachments using the Outbound Communications Manager business service SendMessage method in scripting or workflow is not formally supported at present.

AttachNameList is a list of file names, each separated by “*” (asterisk). AttachFileList is a list of file paths, also each separated by asterisk. AttachNameList is optional. If omitted, the names in the file paths are used.

NOTE: The file paths must be accessible from the process that actually sends the email. That means the client process that calls SendMessage if the ProcessMode argument = Local, and the Communications Manager server component if the ProcessMode argument = Remote.

SocialTwist Tell-a-Friend

Related posts:

  1. Implementation Of Error Control In A Workflow It’s well known that a workflow requires an error control...

Related posts brought to you by Yet Another Related Posts Plugin.

Your Ad Here

Your Ad Here
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

One Comment »

  • william olivos said:

    Buenas tardes es que estoy tratando de enviar un attachment con email, y le envio el AttachFileList and AttachNameList.

    Esto no me esta saliendo, si de pronto usted sabe como se envia un attachment , y tienes el scripting, me podrias colaborar con eso.

    De antemano agradezco de la colaboración.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.