USERID function with Windows Authentication

liizzliizz Member Posts: 125
Hi NAV professionals,

How to use the function USERID when using Windows Authentication(domainname\liizz) to connect to Navison.

For e.g: Rec.Name:= USERID(This does not work for Windows Authentication)

Please help..

Thanks
Liizz

Comments

  • jspoppjspopp Member Posts: 54
    Hi, are you able to use the C/SIDE reference guide? It explains how to utilize the USERID function
  • liizzliizz Member Posts: 125
    Do you mean this part on Userid when doing F1?

    'In this field you can define the user ID of the user. Make sure that the ID is identical to the one defined for the user in SharePoint. The format of the user ID must be DOMAIN\USERID.'

    When I use database login its working fine but not for windows login..

    Thanks
    Liizz
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    liizz wrote:
    When I use database login its working fine but not for windows login..
    what exactly are you expecting from USERID and what output or you getting ?
  • liizzliizz Member Posts: 125
    Hello,
    liizz wrote:
    How to use the function USERID when using Windows Authentication(domainname\liizz) to connect to Navison.

    For e.g: Rec.Name:= USERID(This does not work for Windows Authentication)

    USERID is blank with Windows Authentication..
    I want the system userid(i.e liizz) to get updated in my table and in process also.

    Help please...

    Thanks
    Liizz
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    liizz wrote:
    USERID is blank with Windows Authentication..
    No it isn't. It shows the username, without domain. Try MESSAGE(USERID).
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.