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 :
Finance | Project Operations, Human Resources, ...
Unanswered

List of .NET events in F&O

(1) ShareShare
ReportReport
Posted on by 8
Is there a list of .NET events that can be subscribed to in X++?  Can I subscribe to an event in C# that is not allowed in X++?
  • Judy Profile Picture
    Microsoft Employee on at
    Hi, you can subscribe to events in X++ using delegate keyword and handle the event occurrences in your code.
    Please refer to the X++ and C# comparison:
  • DiTheDev Profile Picture
    8 on at
    In the response provided,. the events and delegates link, the examples appear to be subscribing to events raised in X++ classes.  I am looking for an X++ example where the event is being raised from the .NET framework, more specifically, from AppDomain. 
     
    I have found a few examples X++, but they are looking at different events.  When I try to add and event for AssemblyLoad, the compliler is not happy.  I am working on a C# solution but would really like to have this in X++.  I have not found a solution that builds, or one that can be implemented in X++ due to the complexities of the event.  Specifically, I have not been able to figure out how to add the event handler method to the AppDomain event handler.  So am still looking for an example that I can understand and implement.
  • DiTheDev Profile Picture
    8 on at
    Hello Judy, thanks for the response.  I have tried, but can't seem to subscribe to the event. I guess I am not understanding the examples or AX doesn't like what I am trying to do.  I have decided to move the event registration that I need to do to a C#  dll.  From X++ I will subscribe to the ApplicationStartupDelegates::onPostApplicationStartup in X++ and call my c# code that will register the events I need and handle them.  I have spent too much time on this one already and already have a C# dll so will not be too much work.  I will post my code when done.
     
    Diane
     
     

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 363 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans