Automated Report is reporting on all campaigns




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} />;,_ctx,exportFormat,path,isAdHoc)

Accepted Solutions (1)

Accepted Solutions (1)




Hi Alistair,

The report being generated for all campaign is because you are requesting it to do so.

report generation depends on the ctx parameter. Right now you are specifying the context to be global i.e. all campaigns in the instance.

For specific campaigns, you will have to send the correct parameter.

It is something that required in-depth knowledge of the product and hence I'll leave it for other readers to respond to. 

Unfortunately, I don't have the answer to this query.

If it is something urgent, you can take help of Adobe Professional Services, as a request raised to support will also fetch you the same response.