Workstation ID

dankerrdankerr Member Posts: 9
Does anyone know how to get hold of the Workstation ID or the computer name from C/AL?

thanks

Answers

  • garakgarak Member Posts: 3,263
    message(environ('Computername));
    message(environ('Clientname'));

    for IP or under Terminal Service, use "search the forum"
    Do you make it right, it works too!
  • dankerrdankerr Member Posts: 9
    great - thanks Garak!
  • kinekine Member Posts: 12,562
    Or you can use the session table for that :-):
    Session.SETRANGE("My Session",TRUE);
    Session.FIND('-');
    EXIT(Session."Host Name");
    

    Or automation "'Windows Script Host Object Model'.WshNetwork"

    where is property "ComputerName".
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.