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
BedrockMission!

Learn More

View all

Sign in to view all badges

Automated Report is reporting on all campaigns

Avatar

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
alistairk396804
Level 2

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
Validate 1
Employee
Vapsy
Employee

Likes

369 likes

Total Posts

726 posts

Correct Reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

369 likes

Total Posts

726 posts

Correct Reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
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
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
alistairk396804
Level 2

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
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
alistairk396804
Level 2

01-03-2017

Any thoughts on how to resolve this?