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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Crm Dynamics 365 navigateTo error

(0) ShareShare
ReportReport
Posted on by 67

I am using crm dynamics onPrem vesrion 9.0.10,

In the unified interface i try to use navigateTo function as documented in here :

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/navigateto

But i am getting an error in the error callback function that says that an error occured with this code -2147220715,

Here is my code :

var pageInput = {
            pageType: "webresource",
            webresourceName: "el_AddBenefits.html" // my html page - name taken from crm
        };
        var navigationOptions = {
            target: 2,
            width: 400,
            height: 300,
            position: 1
        };
        Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
            function success(result) {
                debugger;
                // Handle dialog closed
            },
            function error(result) {
                debugger;
                // Handle errors - here i am getting my -2147220715 error 
            }
        );

el_AddBenefits.html is the correct name , but i allready tried without ".html" just to be sure and got the same error 

Thank you

I have the same question (0)
  • Abhishek Dhoriya Profile Picture
    1,013 on at

    Hi,

    I believe that this error is not in your current code, have you checked what you are doing in el_addBenefits.html web resource.

    Error might be there on load of that web-resource. Try loading a simple blank HTML and check if this is working or not.

    You can refer the below explanination for the error code you have mentioned here  which is 

    -2147220715 - This action is not supported.

    here is the link for your reference : https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/org-service/web-service-error-codes

    pastedimage1582867885985v1.png

    Regards,

    Abhishek

  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi oriel,

    Your code is correct,

    I copied you code and execute it in both on-prem(9.0.2.3034) and online environment(9.1.0000.13834).

    I received same error as yours in op while I can open web resource in a dialog in online.

    The reason is that your environment is on-prem version.

    This API is newly provided with 2019 wave 2 release, and the release is for online environment.

    https://debajmecrm.com/2019/11/27/open-webresources-modal-or-inline-using-xrm-naviagtion-naviagteto-in-dynamics-365-unified-interface/

    You could open a support ticket to ask whether the API would be available in latest update for on-prem version.

    Regards,

    Clofly

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans