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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Unpublish published extensions not installed

(0) ShareShare
ReportReport
Posted on by 928

Hello,

i have a requirement to search for all published extensions, that are not installed in a Business Central environment (on cloud), to unplish them all.

how to achieve this through Visual Studio? i mean how to write this extension?

Regards,

David

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    You can use Table ID - 2000000206 in VS code and create a Page by this table and filter your app or publisher name and you can check whether your app is installed or published.

  • KasparsSemjonovs Profile Picture
    4,851 Super User 2026 Season 1 on at

    Just open Extension Management and filter out IsInstalled=NO.

    Feels like it would be easier to add as a script and schedule it on the server - but it can be done only for on-prem BC.

  • David Tailor Profile Picture
    928 on at

    Hi Kaspars,

    i know i can open Extension management form, however i need it to be through code (automated) and it is required for cloud.

    Regards,

    David

  • Suggested answer
    YUN ZHU Profile Picture
    103,656 Super User 2026 Season 2 on at

    Hi, you can try codeunit 2504 "Extension Management"

    Here is a simple example of the installation

    https://yzhums.com/30112/

    Hope this helps.

    Thanks.

    ZHU

  • David Tailor Profile Picture
    928 on at

    Hi Zhu,

    kindly see the following code and the error below:

    it is giving Onprem scope error.

    Note: The extension is searching for any published application not installed: the requirement is to unpblish all applications published with installed = false.

    Regards,

    David

  • Suggested answer
    YUN ZHU Profile Picture
    103,656 Super User 2026 Season 2 on at

    Hi, try to using table 2000000153 “NAV App Installed App”

    More details: https://yzhums.com/22648/

    Hope this helps.

    Thanks.

    ZHU

  • David Tailor Profile Picture
    928 on at

    i can find the issue here , that it works for installed app, however my requirement is to find all apps published but not installed.

    in the table "NAV App Installed App", i will not find the extensions not installed (but published)

    i checked also NAV App Published App table, it is also OnPrem scope.

    Regards,

    David

  • Suggested answer
    YUN ZHU Profile Picture
    103,656 Super User 2026 Season 2 on at

    Hi, I've also checked all the relevant tables and there really isn't one that works.

    The way I can think of so far is to use the Automation APIs. Although I think it's a bit complicated.....

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox221/api/microsoft/automation/v2.0/companies(25333785-59e9-ed11-884d-6045bde998ec)/extensions

    pastedimage1685926352156v2.png

    Hope this helps.

    Thanks.

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 750 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 534 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 287 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans