web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

ControlAddin in event OnAfterCompanyOpen

(0) ShareShare
ReportReport
Posted on by

hello,

I want to call a page that contains a ControlAddin in the Codeunit::LogInManagement event, 'OnAfterCompanyOpen', where the CallJavaScript function is automatically launched.
but I don't switch to the Callback function.

Is there a way to launch a ControlAddin without clicking a button to get the Callback?

On the Microsoft documentation, they necessarily go through an action button but in my case, I can't do that.

  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello  Theo- We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • JJMc Profile Picture
    293 on at

    Howdy.

    As far as I know, in this event (OnAfterCompanyOpen), no page is still created, launched or visusalice, then you can not launch a controlAddin. You'll need to add this controlAdding to the 1st. page the user opens. His/Her rol center.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 765 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 571 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 299 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans