Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Automated Report is reporting on all campaigns

alistairk396804
Level 3
Level 3

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)
1 Accepted Solution
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

0 Replies
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

alistairk396804
Level 3
Level 3

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.