Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Not able to open Canvas App

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.

  • Manish_Dyanamics Profile Picture
    Manish_Dyanamics 40 on at
    RE: Not able to open Canvas App

    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.

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Not able to open Canvas App

    Hi,

    Were you able to solve your issue?

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Not able to open Canvas App

    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 !

  • Manish_Dyanamics Profile Picture
    Manish_Dyanamics 40 on at
    RE: Not able to open Canvas App

    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
    meelamri 13,204 User Group Leader on at
    RE: Not able to open Canvas App

    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.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans