Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Is there a way to change the app ID of an AL app extension?

Posted on by 479

I have a codebase that won't publish to a sandbox since uses an app ID from another app I deployed to AppSource. Is there a way to generate a new app ID for this codebase (it isn't deployed to AppSource)?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: Is there a way to change the app ID of an AL app extension?

    Hi, changing the Guid will create a new table in the database, which means that your original data will be completely lost.

    I have mentioned in the link below how to change the Guid.

    https://yzhums.com/22715/

    pastedimage1660867471888v1.png

  • Suggested answer
    Brad_P Profile Picture
    Brad_P 1,542 on at
    RE: Is there a way to change the app ID of an AL app extension?

    It depends on the state of the app and environment, but in short - If you're working with PTEs, changing the App Id will change the underlying table and table extension references to the new GUID, which will appear to be data loss (you can create something to copy the data if needed).  

    AppSource App offers are tied to the GUID.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Is there a way to change the app ID of an AL app extension?
    [quote user="jdrco"]

    Withdraw my app from AppSource?

    [/quote]

    Yes, you can unpublish it from the MS Partner senter.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Is there a way to change the app ID of an AL app extension?

    I recommend you create a new copy of your code with the new AppId. 

    Either through a branch on git if you use that or by simply copying your VS Code project to a new folder.

    Do not just change in the app you already have published in case you need to maintain something in the already published version.

  • Suggested answer
    jdrco Profile Picture
    jdrco 479 on at
    RE: Is there a way to change the app ID of an AL app extension?

    Will changing the app ID of an app cause any problems?

  • Suggested answer
    Brad_P Profile Picture
    Brad_P 1,542 on at
    RE: Is there a way to change the app ID of an AL app extension?

    The App Id is a Guid. You can generate a Guid and use that as the App Id. The VS Code Extension "Create  Guid" by mwallace is good for this type of generation.

  • jdrco Profile Picture
    jdrco 479 on at
    RE: Is there a way to change the app ID of an AL app extension?

    Is the only way to change the app ID through a creation of another project using AL:Go? And just copying the code/logic of the extension on the newly created one?

  • jdrco Profile Picture
    jdrco 479 on at
    RE: Is there a way to change the app ID of an AL app extension?

    Withdraw my app from AppSource?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Is there a way to change the app ID of an AL app extension?

    No, you will have to withdraw your original app and publish the app with a changed AppId as a new app.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans