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

Notifications

Announcements

No record found.

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 822

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

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 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,774 Super User 2025 Season 2 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
    822 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
    95,718 Super User 2025 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
    822 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
    95,718 Super User 2025 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
    822 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
    95,718 Super User 2025 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans