Automated Report is reporting on all campaigns

Avatar

Avatar

alistairk396804

Avatar

alistairk396804

alistairk396804

28-02-2017

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)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

01-03-2017

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.

Regards,

Vipul

Answers (2)

Answers (2)

Avatar

Avatar

alistairk396804

Avatar

alistairk396804

alistairk396804

01-03-2017

Hi Vipul,

I appreciate the reply. I'll look into sourcing an Adobe PS resource for an hour or two to resolve this. I assume that to the right person this will probably be a quick fix.

Avatar

Avatar

alistairk396804

Avatar

alistairk396804

alistairk396804

01-03-2017

Any thoughts on how to resolve this?