Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish-PerTenantExtensionApps does not remove the previous version during republish #3372

Open
roma-228 opened this issue Feb 26, 2024 · 0 comments
Assignees

Comments

@roma-228
Copy link

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue
When republishing the app as a PTE but with a new version using Publish-PerTenantExtensionApps.ps1, the problem is that the old version remains.
That is, an application with version 1.0.1.0 has already been published on Business central
i want to update this app and install 1.0.2.0
the app is published and installed, but the old version still hangs, how can I remove it, and can I add an option that will do this in Publish-PerTenantExtensionApps
I would like it to work as Publish-BcContainerApp when re-installing the extension as a PTE, namely when re-publishing the app with a newer version, the new version is published and installed and the old version is completely removed from the Business central SaaS

Scripts used to create container and cause the issue

              Publish-PerTenantExtensionApps `
              -bcAuthContext $authContext `
              -environment $environment `
              -appFiles $appPaths `
              -hideInstalledExtensionsOutput

Full output of scripts

BcContainerHelper version 6.0.6
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Attempting authentication to https://api.businesscentral.dynamics.com/user_impersonation offline_access using refresh token...
Authenticated using refresh token as user ***
https://api.businesscentral.dynamics.com/v2.0/Sandbox/api/microsoft/automation/v2.0/companies
Company 'My Company' has id 37375089-41bc-ee11-907c-6045bde9cc8b
https://api.businesscentral.dynamics.com/v2.0/Sandbox/api/microsoft/automation/v2.0/companies(37375089-41bc-ee11-907c-6045bde9cc8b)/extensions

NP_Functionality_1.0.47811.0.app - upgrading..............completed

...

Screenshots
image

@roma-228 roma-228 changed the title PTE does not remove the previous version during reinstallation Publish-PerTenantExtensionApps does not remove the previous version during republish Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants