Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Subject/Message for Recurring Email Instances using CSP

Status
Not open for further replies.

ParuzulaC

Programmer
Dec 3, 2002
2
US
Does anyone know how to update the subject of the recurring instance using csp? I have many recurring instances that were created with a blank subject and message. I'd like to go back through these and put specific information into these by updating the existing instances. The csp is written in JavaScript. This is how I check to see what they are:

var props = "SI_PROGID, SI_DEST_SCHEDULEOPTIONS";
var qStr = "SELECT "+props+" FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID=" + C_SEC_ID_DESTINATION_PLUGINS + " AND SI_NAME='"+destName+"'";
var destresult = iStore.Query(qStr);
var destobj = destresult.Item(1);
var destPi = destobj.PluginInterface("");

// COPY PROPERTIES FROM SCHEDULINGINFO TO PLUGININTERFACE
if (!setToDefaults)
dest.CopyToPlugin(destPi);

var pi = destPi.ScheduleOptions;

var subject = "";
var message = "";
if (destName == "CrystalEnterprise.Smtp")
{
subject = pi.Subject;
message = pi.Message;
}

Thank you in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top