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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model-driven app: show...
Power Apps
Unanswered

Model-driven app: show custom page (canvas page) from a form for new + existing records and mobile

(0) ShareShare
ReportReport
Posted on by 62

Hi everyone 👋

I hope you can help me with my request:



Goal


I have a model-driven app and a custom page (“canvas page”). I want users to open/use this page from a form (ideally inline or as a dialog) both when:

  • opening an existing record, and
  • creating a new record (before the first save — we can’t force a save because of required fields).
  • It also needs to work on mobile (Power Apps iOS/Android).
 
 
What I tried (and where I’m stuck)
 
 
1. Embedded experience on the form tab
  • Using the Embedded Canvas App control on a tab works fine for existing records.
  • But on a new record (no GUID yet), the page doesn’t render at all — it never opens, so any “fallback when no ID” logic inside the page/app never runs.
 
2HTML web resource that iframes a Canvas App
  • HTML web resource builds the apps.powerapps.com/play/<appId> URL and iframes it.
  • Desktop/Web: works for saved and new records (context passed via query string).
  • Mobile: the iframe stays blank/grey and never loads (appears blocked by the mobile shell).
  • Toggling “Enable for mobile” on the web resource didn’t change this.
 
What I’m looking for
  • A supported pattern to open a custom page from a form that:
    • works on new records (no ID yet), and
    • works on mobile (Power Apps mobile), and
    • keeps users in a reasonable flow (dialog or full-page is fine; inline would be ideal but not required), and
    • does not require auto-saving the form first.
 
Extra context (if helpful)
 
  • Command bar button approach with Xrm.Navigation.navigateTo({ pageType: "custom", name: ... }) works on desktop (dialog), but I’ve seen “Page not found” on mobile in some attempts (full page vs dialog).
  • I also tested an HTML web resource that tries to open the custom page via navigateTo when a tab is expanded; again desktop OK, mobile unreliable.
  • I can share minimal code snippets on request (HTML/JS), but I’m mainly asking for the officially supported way to achieve this scenario.
 
 
 
Environment (placeholders you can ask me to fill):
  • Region/Environment type :Sandbox
  • Power Apps mobile version: iOS aswell as Android
     

Any help and new Ideas are appreciated.
Thanks in advance.
GP

I have the same question (0)
  • Nafiun2120 Profile Picture
    144 on at
    Hey @grandepaci
    Use the supported navigateTo method (not an iframe and not the embedded Canvas App control) to open your custom page from the model-driven form for both new and existing records, including mobile. Add a ribbon/command button (or form script) that calls: Xrm.Navigation.navigateTo({ pageType: "custom", name: "<yourCustomPageName>", entityName: "<tableLogicalName>", /* recordId: formContext.data.entity.getId() for existing only */ parameters: { /* pass unsaved field values, e.g., rating: formContext.getAttribute("new_rating").getValue() */ } }, { target: 1 /* full page (mobile friendly) or 2 for dialog */, width:{value:90,unit:"%"}, height:{value:90,unit:"%"} });. For new records, omit recordId and pass whatever the user has typed via parameters; read them in the custom page with Param("rating") (or App.ActiveScreen.OnVisible). Ensure the custom page is added to the same app, published, and enabled for mobile; avoid HTML web resources that iframe Canvas apps (blocked/unreliable on mobile). This pattern opens the page without forcing an autosave, works on web and Power Apps iOS/Android, and handles both unsaved and saved records.

    If you found this answer helpful, please consider giving the post a like so it can reach more people facing a similar challenge. And if this solution resolves your issue, marking it as the accepted answer will help others in the community quickly find the right guidance.
  • grandepaci Profile Picture
    62 on at
    Hi Nafiun,

    thanks for the suggestions.
    The Button with Javascript is not a bad Idea.
    I did manage to show the Page an almost all cases.

    1 Problem that ocurred was, i could not click the command bar Button on mobile when creating a new entry.
    It does work on already existing records on mobile, as i get the option to use the command bar.

    But in that 1st case, the Button doesnt seem to work.

    But i will try testing with it a bit.

    Kind regards
    GP

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard