Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Calling Power Apps Custom Page from Model-driven

$
0
0

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         

  • 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

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

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


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images