Hello,
I have created a report in VS with a parameter of the record ID. I have added this to an IFRAME on an entity and works fine when the ID is manually entered on the report but when the parameter is hidden it doesn't pull the GUID.
IFRAME Properties:
URL: about:blank
Pass record object: Un-ticked
Restrict cross-frame: Un-ticked
JavaScript:
var iframeObject = Xrm.Page.getControl("IFRAME_Customer_Report");
if (iframeObject != null) {
var strURL = "/CRMReports/viewer/viewer.aspx"
+ "?action=run&context=records&helpID="
+ "Customer_Report"
+ ".rdl&id=%7b"
+ "BAAA0325-B7EE-E611-80DD-00155B0A5A09"
+ "%7d&records="
+ Xrm.Page.data.entity.getId()
+ "&recordstype=1";
//Set URL of iFrame
iframeObject.setSrc(strURL);
}
I'm not sure if it's the javascript above that's incorrect as I found this online.
*This post is locked for comments