#1025185
oscarmingte
Participante

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.

10 cursos gratis, sin tarjeta

Accede a los cursos Gratis de Business Central

Instalación, ventas, fabricación y Power BI.

Acceso inmediato, sin límite de tiempo.