Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

In Interactive service hub window.opener is not available

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I have a question - why window.opener is not accessible in ISH when a dialog is opened with Xrm.Utility.openWebResource(..)?

How it can be accessed?

At the same time it is accessible at the same conditions when is used standard D365 (Online or On-premises) environment.

Thanks in advance!

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    I have the same issue, do you solved the problem?

  • MC123 Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hi cskasforce,

    I got the same problem, but this is for the Field Resource Hub. I try to use the top.opener to get data from the original form and transfer it to the form that is opened. It does work in CRM online, but not in the Resource Hub.

    Any suggestions?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hi cskasforce,

    if you solved the problem thanks to an answer, please mark it as verified to encourage the community to provide more and more a better support. Thank you. Francesco

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Verified answer
    Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hi cskasforce,

    you dont need to refer to window.opener.

    To get a reference to Xrm you just need to include ClientGlobalContext.js.aspx, as you can see in the following page:

    https://msdn.microsoft.com/it-it/library/gg328541.aspx?f=255&MSPPError=-2147217396 

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hello again, Francesko,

    The window.opener is used to get Xrm.Page.context, Xrm.Page.data and some other custom properties added to it. And yes, after the WebResourse is closed I need to pass some values from it to MSDCRM entity fields.

  • Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hi cskaforce,

    i need to know the flow, what you need from window.opener, like:

    "on closing webresource in need to update a field with a value from a textbox inside the webresource"

    Let me know.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hello Francesco,

    Thanks for your prompt input!

    Yeah, I'd like to use it as in the standard environment because there is some logic associated with it.

  • Community Member Profile Picture
    on at
    RE: In Interactive service hub window.opener is not available

    Hi cskasforce ,

    i reverse your question: why you want to access window.opener? what is your goal? what you need to do?

    There are a lot of workaround to accomplish task you cannot do throught the standard way :-)

    Please let me know.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans