I have created an extension for an addons . While testing in my local system I have found some bug so in order to fix that I have to uninstall the extension but I have stored some data in my custom table which I don't want to delete.
So in my upgrade codeunit where I have created one global function named OnNavAppUpgradePerCompany I have written below code
But when I have uninstalled that addons and again install that addons in my local machine I was not able to get my Archive data.
Please suggest me what should I need to do in order to fix that, I have followed below link but still not able to restore archive data.
Have a great day, Erik
In reply to Erik P. Ernst:
Thanks for your response. As you mention, I have checked data in SQL and yes data is there. For your reference I have attached screen shot below. Do I need to write a code in OnNavAppUpgradePerDatabase function instead of OnNavAppUpgradePerCompany?
In reply to Garry Popplewell:
In reply to Jens Winberg:
Thanks very much for your reply, You are correct, i was creating a new manifest in memory and creating my package from that, using the syntax below I'm able to retrieve a manifest and change the version thereby preserving the App ID. Many thanks for your assistance Jens, have a great weekend!
Get-NAVAppManifest -Path '.\Manifest-Proseware SmartStuff.xml' | Set-NavAppManifest -Version 184.108.40.2060 -CompatibilityId 220.127.116.11 | New-NavAppManifestFile -Path ".\Manifest-Proseware SmartStuff.xml" -Force