Hello,
I have developed an extension in AL for D365 BC. Now I am writing an install codeunit. In this codeunit, I want to open a control add-in page for app registration and configuration when installing the app in business central. the code is below
codeunit 50140 InstallCodeUnit
{
Subtype = Install;
trigger OnInstallAppPerCompany()
var
myAppInfo: ModuleInfo;
begin
NavApp.GetCurrentModuleInfo(myAppInfo); // Get info about the currently executing module
if myAppInfo.DataVersion = Version.Create(1, 0, 0, 0) then
HandleFreshInstall
end;
local procedure HandleFreshInstall();
var
reg: Page SGRegistration; // Control Add-in page to be opened first on install
begin
reg.RunModal();
end;
}
whenever I hit F5 to install the application in sanbox environment, it throws the following error:
The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=synchronize failed with code 422. Reason: Could not install the extension SendGridNew on tenant due to the following error: Error code: 85132273.
CAN SOMEBODY HELP ME IN THIS? AM I MISSING SOMETHING OR DOING WRONG.