Page 1 of 1

Get User ID from User Field

Posted: 22 Aug 2017
by Дмитрий.Фоломеев
How to get the value of the user ID through the user field.
The object fd.field('userField') contains this value in defaultValue:
fd.field('userField')[0]. all . ctl00$ctl50$g_e496deda_84a1_491b_8b53_e9b0f9000bc3$_x041d__x0435__x043f__x043e__x04Field .... defaultValue .

Perhaps there is a function to get this parameter? (fd.field('userField')[0].getAttribute("defaultValue") not work)

Re: Get User ID from User Field

Posted: 22 Aug 2017
by Nikita Kurguzov
Hello, Dmitry!
Unfortunately, it is not possible to get user ID from the user field.
You can get user login from user field and then use it to get the ID with this - https://msdn.microsoft.com/en-us/librar ... 45233.aspx