Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!

JS and Environments

Avatar

Level 3

Hello members,

I was able to automate the reporting in campaign with java script and workflow (ref. Sending report via workflow )

However, when I try to use the same script in other adobe campaign environment it goes into infinite execution mode and never goes past the java script box.

I could see submit request is taking forever causing java script box to never stop. Here is the script,

Question is is anything wrong with the script or could it be an environment issue?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

var reportName = "deliveryStatistics"

var path = '/usr/local/neolane/nl6/var/' + getOption('NmsTracking_Instance') + '/export/test3'+formatDate(new Date(), "%2D%2M%2Y")+'.xls';

logInfo(path);

var exportFormat = "XLS"; // export format

isAdHoc = false; // is ad hoc?

var _ctx = <ctx _context="selection" _reportContext={reportName} _selection= "107317360" _selectionCount= "1" _schema= "operation" />; //context, campaign pk and count

xtk.report.export(reportName,_ctx,exportFormat,path,isAdHoc); //submit request

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks!

10 Replies