Automated Report is reporting on all campaigns
Hi,
As per my trials in this topic I've finally managed to get the automated report send working, I've even tied in the filename procedure so that my reports are named for the campaign they are meant to be reporting on.
However the reports are currently reporting on ALL campaigns to date rather than only reporting on the campaign the script is being run within. Nothing in the script appears to be filtering on current campaign.
What do I need to add to this script in order to limit it to the current campaign?
var reportName = "aiReportingOverviewDelivery"; var path = "/usr/local/neolane/nl6/var/[instance address]/"+instance.vars.campaignLabel+" Delivery Overview" + ".pdf"; var exportFormat = "PDF"; isAdHoc = false; var _ctx = <ctx _context="global" _reportContext={reportName} />; xtk.report.export(reportName,_ctx,exportFormat,path,isAdHoc)