Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!

Reports Extraction from JS

Avatar

Level 5

Hi Team, 

 

I was actually trying to extract the reports based on the selection criteria from the workflow. 

var reportName = "<reportName>";

var path = "/<home Directory>/"+<reportName>";
var exportFormat = "PDF";
isAdHoc = false;

var _ctx = <ctx _context="selection" _selection={<parameters>} _reportContext={reportName}/>;
xtk.report.export(reportName,_ctx,exportFormat,path,isAdHoc);

 

 

Output :- 

The output we are getting the pdf file in the path directory mentioned. But we dont see any records in the pdf file. 

The same code works for .ods file (means we are able to get the file and also able to see the data in excel). 

 

 

Audit :- 

When checked the audit of both the types of file output. 

 

We are getting the below information ONLY for the pdf report generation. 

Blocked a frame with origin "file://" from accessing a frame with origin "null". The frame requesting access has a protocol of "file", the frame being accessed has a protocol of "about". Protocols must match.

 

When googled around got to know that this is something to do with the security which is isolating the origin site. 

 

Requesting for any help , if any one has encountered with this type of information. 

 

Thanks,
Adithya

 

0 Replies