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

The 4th edition of the Campaign Community Lens newsletter is out now!

Reports Extraction from JS


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}/>;,_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. 




0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now