Skip to main content

Notifications

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

How the deploy Extension Work's in Production Using "schemaUpdateMode": "Synchronize" in Business Central

Posted on by 1,646

HI All,

I have made one custom extension which include custom table and custom pages, and have deployed .app file with version 1.0.0.0 at production instance, Now I have one Question, that if I will update the same extension in future and will deploy with one extended version at production So at that time what behaviour system would consider, will my all data would be there OR would I loss my data from the system ?

Please note that I have set the SchemaUpdateMode = Synchronize".

Any suggestion would be appreciate.

Thank you in advance.

  

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,941 Super User 2024 Season 2 on at
    RE: How the deploy Extension Work's in Production Using "schemaUpdateMode": "Synchronize" in Business Central

    Hi, hope the following can give you some hints.

    How to Unpublish and Uninstall an Extension - Business Central | Microsoft Learn

    Similar to how you make an extension available to tenant users, there's also three operations that are related to the removal of an extension: uninstalling, unpublishing, and synchronizing in clean mode. Each operation provides a different level of removal:

    Task Description
    Uninstalling an extension
    • Done on the tenant level for a specific extension version.
    • Disables the extension on the tenant - making it unavailable to users in the client and removing any user interface that the extension provides.
    • Doesn't affect business data in the tenant, modify SQL, or run any user code. Data that has been collected by using the extension is preserved. As long as the extension hasn't been unpublished, it can be reinstalled and the data is still available.
    • For example, suppose you discovered an issue with the current extension. You could uninstall until a newer version is published.
    Unpublishing an extension
    • Done on the Dynamics 365 Business Central service instance level for a specific extension version.
    • Deletes the extension package from the application database that is mounted on the server instance. The extension is no longer available for installation on tenants of the server instance.
    • Like uninstalling an extension, unpublishing doesn't affect business data in the tenant, modify SQL, or run any user code.
    • An extension can't be unpublished if it's installed on a tenant of the server instance.
    • For example, you would unpublish an extension version when it's no longer in use by any tenant. It prevents tenant users from using the extension again. You'd typically run this operation after an extension has been upgraded on all tenants from one extension version (for example, 11.0.0.1) to newer version (11.0.0.2).
    Synchronizing in clean mode
    • Done on the tenant level for all versions of an extension.
    • Removes the database schema that's defined by the extension versions. This operation deletes all data in the extension. If a table or table extension was included in any version of the extension, the table or companion table will be deleted from the tenant database.
    • You can't synchronize in clean mode if any version of the extension is installed on a tenant of the server instance.
    • In production, use this mode primarily as a final cleanup step after all versions of an extension have been uninstalled and unpublished for good.
    • In development, this mode is useful to give you a "clean" environment when making database-schema related modifications.
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,077 Super User 2024 Season 2 on at
    RE: How the deploy Extension Work's in Production Using "schemaUpdateMode": "Synchronize" in Business Central

    Your data will be there.

    Make sure that you increase app version every time before deploying like 1.0.0.1 etc.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans