web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Renaming iFrame url

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a js file that fires onloan on the account form, 

function SetReportUrl() {

var customerId = Xrm.Page.data.entity.getId();
var url = “reportserver/.../ReportViewer.aspx;rs:Command=Render&Account=” + customerId;
var iFrame = “IFRAME_ZendeskTickets”;
if (customerId == null) {
Xrm.Page.getControl(iFrame).setVisible(false);
}
else {
Xrm.Page.getControl(iFrame).setSrc(url);
}
}

however when it loads in the iframe it changes the url to 

<iframe frameborder="0" id="IFRAME_ZendeskTickets" onload="if(!IsNull(Mscrm.InlineIFrameControlView)) Mscrm.InlineIFrameControlView.loadHandler(&quot;IFRAME_ZendeskTickets&quot;)" class="ms-crm-Custom-Read" tabindex="1630" url="reportserver/.../ReportViewer.aspx;amp;rs%3aCommand=Render" src="/_static/blank.htm"

i've set an alert in my JS file to check the url being passed but its correct, theres nothing else that i can see thats passing a url to the iframe either.

*This post is locked for comments

I have the same question (0)
  • Preeti Sharma Profile Picture
    2,678 on at

    Hi,

    Please check below links:

    1. www.linkedin.com/.../change-url-iframe-crm-2015-sarabjit-singh

    2. community.dynamics.com/.../168727

    Thanks

  • Community Member Profile Picture
    on at

    Hi

    i'm able to set a URL but somewhere along the line its being altered.

    This is the error that shows on the report iframe.

    The operation you are attempting on item '/' is not allowed for this item type. (rsWrongItemType)

    Thx

  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at

    Hi,

    Can you please check by providing complete URL(URL for report) for report.Somehow path provided to open report is not correct

    Hope this helps. :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans