Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

link to form in model-driven app from canvas app

(0) ShareShare
ReportReport
Posted on by 595

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...

  • fieldnamechange Profile Picture
    4 on at
    Re: link to form in model-driven app from canvas app

    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

  • Verified answer
    KoJaPD Profile Picture
    595 on at
    Re: link to form in model-driven app from canvas app

    FYI, I have found a second-best option, to use Environment Variables like "CurrentEnvironmentRootURL" and "ModelDrivenAppGUID"...

  • KoJaPD Profile Picture
    595 on at
    Re: link to form in model-driven app from canvas app

    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

  • v-jefferni Profile Picture
    on at
    Re: link to form in model-driven app from canvas app

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard