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

[BC Idea]: Trigger Upgrade Logic including DataTransfer from AL #1659

Open
1 task done
JohnnyUndercover opened this issue Jul 29, 2024 · 2 comments · May be fixed by #1657
Open
1 task done

[BC Idea]: Trigger Upgrade Logic including DataTransfer from AL #1659

JohnnyUndercover opened this issue Jul 29, 2024 · 2 comments · May be fixed by #1657
Assignees
Labels
BCIdea Issue related to a BCIdea Follow Up The issue has an open question and must be followed up on

Comments

@JohnnyUndercover
Copy link

BC Idea Link

https://experience.dynamics.com/ideas/idea/?ideaid=5fd11dbc-914d-ef11-b4ac-6045bd8476a6

Description

From the Idea
From time to time we have features that replace existing features. If we enable the new feature we need to transfer data from the old tables and fields to the new ones.

We want to be able to trigger the upgrade from the ui, similar to the functionality in the feature managemnt page.

But if we do the upgrade with normal al code (using repeat until) the upgrade is pretty slow and if somthing goes wrong we are in a bad position..

The solution would be faster upgrade code. We can achive this by using DataTransfer inside of Upgrade or Install Codeunits. But currently we cannot trigger this code from the UI (or throught AL Code).

Suggested solution that we can implement now

I suggest to add a new Procedure "ReinstallExtension" to the Extension Management Codeunit.
The procedure would uninstall and then reinstall the extension. This would trigger the Install Codeunit of the extension. Inside of the Install Codeunit of the extension we can then check if we need to run our upgrade code or not and upgrade the data using DataTransfer.

I will provide the implementation for this BC Idea

  • I will provide the implementation for this BC Idea
@JohnnyUndercover JohnnyUndercover added the BCIdea Issue related to a BCIdea label Jul 29, 2024
@JesperSchulz
Copy link
Contributor

Hi @JohnnyUndercover,

while I get your scenario, your solution does sound more like a workaround than like a proper solution.

Allow me to discuss internally.

@JesperSchulz JesperSchulz added the Follow Up The issue has an open question and must be followed up on label Aug 26, 2024
@JohnnyUndercover
Copy link
Author

Completely agree. Would be nice to be able to run uprade code without reinstalling the app.

@JesperSchulz JesperSchulz self-assigned this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BCIdea Issue related to a BCIdea Follow Up The issue has an open question and must be followed up on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants