Access NAV service information with C/AL

Hi Experts,

I just wanted to know, is there a way to access NAV server instance information withing C/AL coding. Mainly I want read service account name and password.

Thanks

Answers

  • DuikmeesterDuikmeester Member Posts: 308
    With PowerShell the (Get-NAVServerInstance).ServiceAccount gives you the Account name that runs the NAV service. Getting the password is impossible.
  • vaprogvaprog Member Posts: 1,140
    Please, have a look at the information found at Read Server Settings from C/AL code.
    I am not sure if you can find the information you are looking for directly from the dotnet object described there, but I am petty sure, you can use some other dotnet functionality in connection with information provided from it to get the service user.
    And I agree with Duikmeester
    Getting the password is impossible.

Sign In or Register to comment.