Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to delete Notifications through code

(0) ShareShare
ReportReport
Posted on by 195

Hi All,

Can any one help me to delete the notifications through code.

Regards,

Swetha

*This post is locked for comments

  • Swetha Molagavalli Profile Picture
    Swetha Molagavalli 195 on at
    RE: How to delete Notifications through code

    Hi Istvan,

    I have tired the code in blog which you mentioned, it is not working.

    Regards,

    Swetha

  • Suggested answer
    István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: How to delete Notifications through code

    Hi Swetha,

    Notifications are stored in EventInbox table, but be aware there is a cascade delete action towards the EventInboxData table. You can check this topic also:

    Deleting Notifications in AX2012

    Kind regards,

    István

  • Suggested answer
    Daniel Weichsel Profile Picture
    Daniel Weichsel 1,657 on at
    RE: How to delete Notifications through code

    Hi Swetha,

    Check out the standard cleanup task for this under System administration> Periodic> Notification clean up.  It may fit your needs directly or you can learn from its code to design your solution.

  • Swetha Molagavalli Profile Picture
    Swetha Molagavalli 195 on at
    RE: How to delete Notifications through code

    Hi Andre,

    I need to delete the records from notification clean up form based on the date.

    Regards,

    Swetha

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,965 Super User 2025 Season 1 on at
    RE: How to delete Notifications through code

    Hi Swetha,

    Can you indicate what exact notifications you are referring to? Do you have a table name? Should all notifications be deleted or based on some conditions?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans