Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

New AppID when updating solution?

(0) ShareShare
ReportReport
Posted on by 2,563

Hi

 

I have a solution that uses deeplinking to a powerapps in emails.
The deeplink contains the URL of the application with the AppID and some variables.

 

I have the one DEV enviroment, unmanaged solution and one PROD enviroment managed solutions.

I make the changes I need ion DEV export it as managed and move it to PROD.

Will an update or upgrade always change the AppID, as this breaks my deeplinking in emails, they will now point to an app that does no longer exists.

 

I maybe should have thought the deeplinking part thru more, but is it correct that each time i make an update, export from dev to prod, I will get a new AppID? And if yes, how can I solve this with still using deeplinks to to point to the correct app?

Categories:
  • JimmyW Profile Picture
    2,563 on at
    Re: New AppID when updating solution?

    @joe_hannes_col Thank you for taking your time and answering me.

  • Verified answer
    joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at
    Re: New AppID when updating solution?

    Hello @JimmyWork,

    The environment variable(s) would have to be set to the app ID in Dev for the DEV environment, and to the app ID in Prod for the PROD environment.

    So after you first imported your app to PROD as part of your solution, you will have to retrieve the PROD app ID, and then you will have to update the environment variable with this PROD app ID. If you haven't already, please review the limitations on environment variables, for example, you might have to turn off and then turn on flows that use your environment variable to enforce the new value.

  • JimmyW Profile Picture
    2,563 on at
    Re: New AppID when updating solution?

    @joe_hannes_col Thank you for clarifying.

    However if I use environmental variables based on App ID would they not need to be updated when moving from DEV to PROD

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at
    Re: New AppID when updating solution?

    Hello @JimmyWork,

     

    Sorry, developing in Prod is not what I meant at all. Developing in a Dev environment and then pushing the solution to Prod (with intermediate steps like UAT, if applicable) is absolutely the correct approach.

    What I was trying to say is:

    • You start developing a solution in Dev, and add a Canvas App to your solution.
    • You then import this solution into Prod. When you first import the Canvas App inside the solution, an app ID is generated for this app in Prod.
    • When you make changes to your solution in Dev, and then import the updated solution into Prod, the app ID will not change. Your links will continue to work (as long as you do not overwrite the environment variable values in Prod with the ones from Dev, that is).
  • JimmyW Profile Picture
    2,563 on at
    Re: New AppID when updating solution?

    Thank you for answering. @joe_hannes_col 

    I'm using environmental variables, nothing is hardcoded.

     

    But I develop in DEV, unmanaged solution.

    The I publish to PROD as managed solution. 

     

    What you are saying I should develop in PROD? Because once I update a solution from DEV to PROD a new ID is generated.

     

    Would you say this is the correct approach for PowerApps, and DEV, UAT, PROD environments are basically one? Then why package it as solutions? have 2 solutions for each one dev and one prod, will just be a messy clutter?

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at
    Re: New AppID when updating solution?

    Hello @JimmyWork,

     

    As long as you update the solution in the Prod environment, the app ID will not change. Your deeplinks are going to continue to work.

    You might still consider using environment variables for your links, as you will be able to change the app ID in an environment variable more easily than if you have hardcoded it in your app (if you're not doing this already): https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 11 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 9

#3
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

Overall leaderboard

Featured topics