Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

(0) ShareShare
ReportReport
Posted on by 30

I am able to successfully open a custom HTML page (popup) on opportunity view form, by placing a custom button new to new button, in Dynamics 365 using Xrm.Utility.openWebResource, post that if I am opening any opportunity from out of the box view of CRM it is also opening in pop up until I refresh it or until I open another entity in CRM. Please let me know if there is any solution

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    Hi Ankit ,

    This is known issue in internet explorer. You can say this is limitation of product , so nothing you can do at the moment with Xrm.Utility.openWebResource.

    Alternate options you can do using window.open or opening dialog. Window.open is unsupported so be careful to before use.

    Please have a look look old thread -

    community.dynamics.com/.../185488

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    There is nothing wrong in your script. I don't think the issue you are facing is related to this script. You can disable/ remove this script and check if the issue happens. Also, if possible plz share screenshot of your problem ( are you openeing the record by clicking "New" button or any existing record in homepage grid or any existing record in a subgrid or a new record ina subgrid.).

    Hope this helps.

  • Ankit S Profile Picture
    Ankit S 30 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    Hi,

    Thanks for the reply.

    I am using this method in CRM V8.2, and it is working fine to open a custom html form but post that if I am opening a record from out of the box view it is opening in a new window until open another entity or refresh the crm.

  • Ankit S Profile Picture
    Ankit S 30 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    Hi Ravi,

    Thanks for the response, I am calling below javascript method (written in a custom js file) on a button click  (through Ribbon work bench)

    function openCustomWebResource() {

       Xrm.Utility.openWebResource("lnt_/Htmls/newopportunity.html", null, 1100, 600);

    }

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    Hi Ankit,

    It seems the code you have added is still triggering for the out of bot button. Could you share some more details on how you have implemented this? May there is something missing in yout implementation?

    Hope this helps.

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: After using Xrm.Utility.openWebResource, can able to open custom HTML for in MS CRM, post that if I am opening a record from out of the box view of CRM it is also opening in popup instead in ms crm.

    Hi Ankit,

    Xrm.Utility.openWebResource is deprecated in CRM V9.0.

    You can use Xrm.Navigation.openWebResource

    Please mark my answer verified if it resolve your problem.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans