web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / open Canvas App on cli...
Power Apps
Unanswered

open Canvas App on click of button

(0) ShareShare
ReportReport
Posted on by 26

I have a requirement to open a Canvas App by click of a button from crm and I can see a few examples already provided for this. The main query I have is that since I would need to code the javascript function to open the Canvas App using the App Id (of the Canvas App), would this Id remain same when the Canvas App is migrated across different environments Dev to Production. Can someone who has used this approach please clarify.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @bravoperss ,

    I can tell you definitively that the app ID will not be the same as this value has to be unique to the app. Migrating (as you would know) involves making a copy of the app in the other environment, therefore the "old" app is still there and each now has its unique ID.

    I don't know if this helps, but I control things like deep linking testing with a reference table (one in each environment) with the URL of the target app and simply lookup and refer to this in the script. When the app ends up in Prod, the reference of the Prod target is already there.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • bravoss Profile Picture
    26 on at

    Hi Warren,

     

    Thanks for replying. How do you map the App ids in table to the different environments ? Is this based on Org name. We also do sometimes copy our test environments from Prod and the process gives random org names.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @bravoperss ,

    On thinking it further, I did miss describing one step. When I get to Prod, I unlink the test list (which is on the test site) and link to a list with the same name and fields in the prod site. Only takes a few minutes, but I have a heap of other parameters there as well it picks up which I can freely change on the test version without affecting Prod.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • bravoss Profile Picture
    26 on at
    Sorry but I am having a bit of difficulty putting it all together. I get the point of maintaining a table to map the App Id but how would that work during copy of Prod to a new test Instance of CRM for example. I suppose the App ID would be new in this case. Would someone have to manually update the table each time this is done or are there options to query the App ID from Powerapps directly and auto populate this into some table by running a script ?
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @bravoperss ,

    Now I see the confusion - Apples and Pears here. I have a SharePoint backend. When you mentioned a Canvas app, I made the wrong assumptions.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard