How can I execute custom code when the AOT Service Starts on the Server in MS Dynamics AX?

StackOverflow https://stackoverflow.com/questions/1221505

  •  10-07-2019
  •  | 
  •  

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.

Was it helpful?

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
scroll top