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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Problem making changes to Event/Alerts

(3) ShareShare
ReportReport
Posted on by 4,079
I would like to make some changes to the Event/Alert system in D365Fo.
But I have a problem finding where in the code things happens.
 
One of the problems is that I can not figure out where the code is that is run when an alert I have created is run.
I made a new alert on Customer Groups, where if the description is changed I get an alert.
I can see that when I change the description on a Customer Group, a new record is created in the Table EventCUD, but I can't find where that happens in the code.
I tried adding an Event Trigger onInserted, but it is not run when I make the Change to a Customer Group.
 
I can see that the Developer Documentation on Table EventCUD has this text.
"The EventCUD table is used for changed based error messages only. When a user creates, updates, or deletes a record, the information about that event is stored in this table. Records in this table are inserted by the hooks for the database log created, update, and delete events. The records are deleted later by the create, update, delete event processor after the create, update, delete records have been matched against rules."
 
But what does that mean?
 
Does anyone have any experience with this that they would like to share?
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,263 Super User 2026 Season 1 on at
    Hi Rudi,
     
    In Dynamics 365, the eventCUD table is filled by the SQL server. When you enable an alert, it will enable a database trigger. Then a stored procedure will create records in this table.
    There is no X++ involved and because of direct SQL, also no table events in Dynamics 365 are triggered for this table.
  • Rudi Hansen Profile Picture
    4,079 on at
    André Arnaud
    In Dynamics 365, the eventCUD table is filled by the SQL server. When you enable an alert, it will enable a database trigger. Then a stored procedure will create records in this table.
    There is no X++ involved and because of direct SQL, also no table events in Dynamics 365 are triggered for this table.
     
    Do you know how and where those database triggers are made in D365Fo?
  • André Arnaud de Calavon Profile Picture
    306,263 Super User 2026 Season 1 on at
    Hi Rudi,
     
    Apologies for a late reply.
    I haven't checked the coding for creating the database triggers myself. You can try to reverse engineer by following the logic of what happens when you enable or disable alerts.

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 June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 370

#3
Martin Dráb Profile Picture

Martin Dráb 283 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans