Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

navigateTo 404 not found

(0) ShareShare
ReportReport
Posted on by 76

Hi!

I try to open a html webresource as dialog like this:

 Xrm.Navigation.navigateTo({
           pageType: "webresource",
           webresourceName: url,
           data: params,
       }, {
           target: 2,
           height: 550,
           width: 600,
           position: 1
       }).then(function success() {
           CloseDialogCallback();            
       }, function error() {
       });

The dialog box opens but looks like this:

pastedimage1679942507072v1.png

If I copy the blured URL (above "Server Error") into the browser, I can navigate as wanted. What could be false?

thx in advance

©a-x-i

  • Axi Bachlechner Profile Picture
    76 on at
    RE: navigateTo 404 not found

    problem solved.

    The problem was the value of the webresourceName.

    I passed: "crm365-mycrmurl.com/.../MyDialog.html"

    correct value: "MyDialog.html"

    so easy :)

    a-x-i

  • Axi Bachlechner Profile Picture
    76 on at
    RE: navigateTo 404 not found

    onprem

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: navigateTo 404 not found

    Hello,

    Are you online or onprem?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans