How can I execute custom code when the AOT Service Starts on the Server in MS Dynamics AX?
Question
I need to switch off certain some batch jobs when DAX has been restarted. How can I accomplish this?
Note from Author: This is most likely a X++ programming question and not configurable.
Solution
Add your instructions in Application.startupPost()
:
if (new Session().clientKind() == ClientType::Server)
{
this.fuzzyTheBatchJobs();
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow