Hi All,
Can any one help me to delete the notifications through code.
Regards,
Swetha
*This post is locked for comments
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?
Hi Andre,
I need to delete the records from notification clean up form based on the date.
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.
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
Hi Istvan,
I have tired the code in blog which you mentioned, it is not working.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Alexey Lekanov 3
Scott_itD 2 Community Manager