Dear,
How can we generate links to specific entity record forms of a model-driven app from within a canvas app in the same environment?
The canvas app should always link back to a specific model-driven app (with a specific name) in the same environment (which should be fetched during runtime)
for example, canvas app [CA] shows a list of entities [abc_myentity]; when the user clicks on the link for a specific record, it should go to the main entity form of that record in model-driven app [MDA] in environment A, looking something like:
https://{currentenvironment}.crm.dynamics.com/main.aspx?appid={modeldrivenappID}&pagetype=entityrecord&etn=abc_myentity&id={selectedrecordID}
I know of the function
PowerAppsforMakers.GetApps()
but it only returns Canvas Apps and shows all apps accross all environments the user has access to...
I am also looking for the same solution.
Could anyone guide me how to get the model driven app id in PowerApps page dynamically without passing the guid or app name. I have checked for the "PowerApps for admins and PowerApps for makers" but they ask for either name or id of the app and also they will fetch only the current canvas app Id and name only and not for the other apps. please help to get the Id directly. I am new to power platforms
My requirement is to call a common functionality in 3 apps but while performing the action it should navigate to the task form in respective apps only.
previously we have this functionality only for single app so we just hard coded the app id but now as its going to be in 3 apps so we need to get the app id at run time only
FYI, I have found a second-best option, to use Environment Variables like "CurrentEnvironmentRootURL" and "ModelDrivenAppGUID"...
Dear,
Thanks, but that is only part of the solution. I still need to find a way to get the "current environment ID" and the "model driven app ID" (to be found using the name)... How would I do that?
Thanks
Hi @KoenJanssensPD ,
You will be able to open a new tab linking to the specific Form page of a Model-driven app when using Launch function OnSelect of a button or other Controls, and fill the parameter with the URL:
Launch("https://{currentenvironment}.crm.dynamics.com/main.aspx?appid={modeldrivenappID}&pagetype=entityrecord&etn=abc_myentity&id=" && selectedrecord.GUID)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional