Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to open webresource in Dynamics 365 for Mobile?

Posted on by

Hi, everyone.

We have several custom buttons which open custom html webresources.

They work properly in Web. But now we need to configure Dynamics 365 for Mobile application. But when im using the latest Xrm.Navigation.openWebResource function like this:

Xrm.Navigation.openWebResource("{myresource}.html"); 

or 

Xrm.Navigation.openWebResource("{myresource}.html", { height: 120, width: 260 }); 

After publication it shows correctly just first time. With the next calls it shows only empty page with text "No data available". When I`m trying the navigate back it shows error: 

null is not an object (evaluating 'document.getElementById("FullPageWebResource").contentWindow')

 

I tried previous: 

Xrm.Utility.openWebResource("{myresource}.html", null, 300, 300);

But result is the same.

Does anybody know how to resolve this?

*This post is locked for comments

  • naresh babu Profile Picture
    naresh babu 425 on at
    RE: How to open webresource in Dynamics 365 for Mobile?

    Hi Denys Demchenko,

    www.inogic.com/.../access-web-resources-from-dynamics-crm-tablet-and-mobile-apps

  • RE: How to open webresource in Dynamics 365 for Mobile?

    Thank you for your answer.

    But I don`t need the popup, it can be the separate window or redirect to another page with webresource.

  • Prashant_ Profile Picture
    Prashant_ 1,040 on at
    RE: How to open webresource in Dynamics 365 for Mobile?

    You cannot use popup on mobile app.Following link might help you.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/customize/iframe-web-resource-support-dynamics-365-phones-tablets

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans