How to Put message in event log by dynamics axapta code

To  Write message in event log by dynamics axapta code x++ you can try following code in job of AOT.

 System.Diagnostics.EventLog EventLogObj = new System.Diagnostics.EventLog();

    ;

   EventLogObj.set_Source(‘Dynamics Axapta -Message from Admin’);

    EventLogObj.WriteEntry("This is just checking of message in event log form Dynamics ax");

    EventLogObj.Close();

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.