Hi,
I'm learning Power Apps and working on some test scenarios. One of which is I have an embedded canvas app that I'd like to enable to work on its own. That is, I'd like the same app to function while embedded or while running as a standalone app. The canvas app is a simple app that modifies a record.
To facilitate this I added a screen that would display if the app isn't embedded. That screen simply asks for user input for the record identifier. User submits the record identifier and the app will continue as normal. If the app is embedded in a model-driven form, the record identifier is passed by the parent form and the user input screen should be bypassed.
To facilitate this, I set a flag variable "_IsEmbedded" in the app's OnStart action.
If(
!IsBlank([@ModelDrivenFormIntegration].Item),
Set(
_IsEmbedded,
true
),
Set(
_IsEmbedded,
false
)
);
If(
_IsEmbedded,
Navigate(
HomeScreen,
ScreenTransition.None
),
Navigate(
WelcomeScreen,
ScreenTransition.None
)
);If _IsEmbedded = true then navigate to the Home Screen. If _IsEmbedded = false, navigate to the Welcome Screen where the user is required to enter the record identifier.
Unfortunately, this doesn't seem to be working! When running the app as an embedded app in the model-driven app, the record identifier is successfully passed. I can display record values. However, _IsEmbedded remains false. So, I am always pointed to the Welcome Screen.
Am I missing something simple? Or, is this capability not supported?
Thanks for any help.
Regards,
Dan

Report
All responses (
Answers (