oscarmingte
Participante
oscarmingte
Hola , te paso la solución:
[EventSubscriber(ObjectType::Codeunit, Codeunit::”System Initialization”, ‘OnAfterLogin’, ”, false, false)]
local procedure MyProcedure()
var
Comprobar: page “Customer Ledger Entries”;
begin
if Session.CurrentClientType in [ClientType::Web, ClientType::Desktop, ClientType::Windows, ClientType::Tablet, ClientType::Phone] then begin
Commit();
Comprobar.RunModal();
end;
end;
Aquí tienes la clave:
Dynamics 365 Business Central: be careful when using the OnCompanyOpen trigger
Si no lo controlas con el session type no funciona.
ya me cuentas.
Un saludo Óscar.
30 noviembre 2022 a las 11:47
#1025185