Hi Everyone,
I am trying to run a report from java script ,
function OpenOrderReport() {
debugger;
var rdlName = "Complaints Acknowledgement Report.rdl"; //Replace
var reportGuid = "FD140AAF-4DF4-11DD-BD17-0019B9312238"; //Replace
var entityType = "112"; //Replace
var entityGuid = Xrm.Page.data.entity.getId();
var url = Xrm.Page.context.getClientUrl() + "/crmreports/viewer/viewer.aspx?action=run&context=records&helpID=" + rdlName + "&id={" + reportGuid + "}&records=" + entityGuid + "&recordstype=" + entityType;
window.open(url, null, 800, 600, true, false, null);
}
The thing is when i am trying to open crm report URL
Xrm.Page.context.getClientUrl() + "/crmreports/viewer/viewer.aspx?
It's not opening and i am getting following error
Please Help me on this....
*This post is locked for comments