
Ernst wrote:In JIWA7 we had plugins for adjusting the email subject message etc e.g. "Sales Order Custom Email,Purchase Order Custom Email" DO we have any similar ones in JIWA8?


public void EmailReportDirect(JiwaFinancials.Jiwa.JiwaApplication.Report.Configuration.Report Report, string From, string EmailTo, string Subject, string CC, string BCC, string Message, string NameToGiveAttachment, ref string EM_Main_RecID, System.Collections.Generic.Dictionary<string, string> ReportFormulas = null, System.Collections.Generic.Dictionary<string, string> ReportReplacementTokens = null, bool RequestReadReceipt = false, string SourceID = "", string SourceType = "", string SourceDisplayNo = "", JiwaFinancials.Jiwa.JiwaApplication.JiwaSearch.clsSearch.SearchModes SourceDrillDownIndex = JiwaFinancials.Jiwa.JiwaApplication.JiwaSearch.clsSearch.SearchModes.jswUnknown, JiwaFinancials.Jiwa.JiwaApplication.JiwaReportProvider.ExportFormats ExportFormatType = JiwaFinancials.Jiwa.JiwaApplication.JiwaReportProvider.ExportFormats.PortableDocFormat, string SY_Forms_ClassName = "")Plugin.Manager.AddReportSelectionFormulaToken("{@PASS_FromAcc}", emailCandidate.DebtorStart)Dim formulas As New Dictionary(Of String, String)
formulas["{@PASS_FromAcc}"] = emailCandidate.DebtorStart ' Just setting a dictionary value will add it, or replace it if already present - no need to formally use Add
formulas["{@PASS_ToAcc}"] = emailCandidate.DebtorEnd
// And so on
Plugin.Manager.EmailReportDirect(reportToEmail, "admin@accent-tools.co.nz", emailCandidate.EmailAddress, message, emailCandidate.CCEmailAddress, "", message, FileName, EM_Main_RecID, formulas, null, "", False, sourceID, sourceType, sourceDisplayNo, sourceDrillDownIndex, exportFormatType);

Return to Technical and or Programming
Users browsing this forum: No registered users and 1 guest