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

Notifications

Announcements

No record found.

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,075
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
    301,248 Super User 2025 Season 2 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,075 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
    301,248 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 677 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 421 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 317 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans