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,...
Suggested Answer

Not able to open Canvas App

(0) ShareShare
ReportReport
Posted on by 40

Hi All,

I am trying to open a Canvas app from Model Driven Application. Here is the code but its not working correctly. I am getting error saying Page Not Found in the Pop up.

Xrm.Navigation.navigateTo({pageType:"custom",name:"cr5ac_applyleave_a98fc"},{target: 2, position: 1, width: {value: 50, unit:"%"}});

Please let me know what mistake I am doing.

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi Manish,

    How did you create your canvas app? Did you use the new 'Custom Page' component through make.preview.powerapps.com? Indeed, the classic canvas app cannot be opened with the function Xrm.Navigation.navigateTo(). This function supports new custom pages only.

  • Manish_Dyanamics Profile Picture
    40 on at

    Thank you so Mehdi. I was under impression that we can use navigateto to open Canvas app as well. If that is not the case then how can I open Canvas App on a click of button from Ribbon.

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Option 1:

    You can use this smart button : develop1.net/.../new-smart-button-custom-dialogs-in-model-driven-apps-using-canvas-apps

    Option 2

    You can create a web resource, then add your CanvasApps using an Iframe. Then you can open use Xrm.Navigation.navigateTo() to open the Web Resource.

    Please refer to this blog: dynamict.eu/.../

    It explains how to add a canvas app using an IFRAME to an HTML WebResource

    Good Luck !

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    Were you able to solve your issue?

  • Manish_Dyanamics Profile Picture
    40 on at

    Hi Mehdi,

    My main concern here that in my current project, they have done the same thing and it is working and I know very well that they have not designed the UI through Page. Old Canvas app is opened through navigateTo API client call. I was trying to do the same and I stuck here.

    So Just trying to understand what mistake I am doing here.

    Do I need to add anything in OnStart method of Canvas app or any special connectivity required between Model Driven and Canvas so that Model Driven app can recognize the Canvas App. I am still searching for the answers.

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 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans