Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Calling Power Apps Custom Page from Model-driven

(0) ShareShare
ReportReport
Posted on by 312

Hi,

I created a custom page and after published, I'm planning to call this page (entry form) from a Main Grid of my Model-driven menu.

Here is my step :

  • Get my logical name of Custom Page         

pastedimage1651703598006v1.png

  • Create new Web Resource

function OpenCanvas()
{
var pageInput = {
	pageType: "custom",
	name: "new_newexpensecustom_e990e"
};
var navigationOptions = {
	target: 1
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions)
	.then(
		function () {
		{
	).catch(
		function (error) {
		}
	);
}

  • Save and Publish
  • Go to my Model-driven, Edit in Preview, look for my menu (Subarea), click three dots for Edit command bar

pastedimage1651703748997v2.png

  • Choose Main Grid
  • Choose Add Command for new command button in that main grid.
  • Set for calling the Web resource ->

pastedimage1651703855421v3.png

After Save and Publish, nothing happened when I click that new button. 

I tried to add some alert, right after the function name, also didn't show when it is click. 

Anyone can help what did I missed ?

Thanks

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans