Hello Everyone,
Is there a way that we can set up due date alert for more than 4 months. We have a requirement for 6 months which I dont find the option on the "Create Alert rule- batches" screen.
Screenshot attached.
Thanks,
Arvind
*This post is locked for comments
Hi Arvind,
It is related to experience. Initially, I looked at the alert creation form and a related class of that form, but it was a bit abracadabra for me. Then I searched for an enumeration starting with "Event" as most of the objects related to the alert functionality starts with this prefix. Then you can use the EventDueDays as bse for cross reference or a metadata search.
Thank you Andre. It did fix my issue.
1. Added a new element for 6 months on EventDueDays
2. Modified the method dueDays2date on EventTypeDue class.
Switch statements were modified to get the 6 months value.
Quick question - new to this AX development, probably an off topic question - how did you find these components were involved with this this things. Is it from the experience :) ?
My method was I found the enum(luckly) and added the new element. The batch job history gave me an error that the following class/method cannot be executed. So I found the class and method from error message to fix it and add a new switch statement.
Regards,
Arvind
Hi Arvind,
Just thinking whether the standard MSOutlook synchronization feature would be an alternative option for you that does not require a customization?
If you simply create a task or appointment in AX and sync it with Outlook you can make use of the default Outlook reminders, etc.
Here some posts how this can work:
https://dynamicsaxtipoftheday.com/2013/11/13/synchronize-dynamics-ax-with-microsoft-outlook/
https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/synchronize-with-microsoft-outlook
Maybe think about this as an alternative and 'cheap' workaround.
Best regards,
Ludwig
Hi Arvind,
A small hint... The enum EventDueDays is having the list with options. It is possible to add a new value. Then have a look at the class EventTypeDue (method dueDays2date()) how you can calculate 6 months.
Thanks Andre. I did check few tables and classes like EventRule, EventRuledata.. I dont think there is a value that I can adjust or add.
Is there any other way to achieve this same functionality for the field level alerts ?
Thank you once again for your response.
Hi Arvind,
I think it would be possible to customize it and add an option for 6 months. I haven't done it myself, so can't guide you how to start.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156