<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Querying the sys_user table from client script (scope app) in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987772#M644698</link>
    <description>&lt;P&gt;is &lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_id and &lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_bg are reference field? Can you please provide some screenshot?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Jan 2018 16:33:08 GMT</pubDate>
    <dc:creator>Shishir Srivast</dc:creator>
    <dc:date>2018-01-19T16:33:08Z</dc:date>
    <item>
      <title>Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987762#M644688</link>
      <description>&lt;P&gt;Hi all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to query "sys_user" table via client script. I want to retrieve the user's id and segment code based on the inputted employee's name (u_formatted_display_name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the below client script but am getting the below error message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/61579i802EF0CF86F10663/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; if (isLoading || newValue === '') {&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var empName = g_form.getDisplayBox('u_emp_name').value;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var gr = new GlideRecord('sys_user');&lt;/P&gt;&lt;P&gt;gr.addQuery('u_formatted_display_name', empName);&lt;/P&gt;&lt;P&gt;gr.query(myCallBack);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function myCallBack(gr) {&lt;/P&gt;&lt;P&gt;if(gr.next()) {&lt;/P&gt;&lt;P&gt;g_form.setValue('u_emp_id', gr.user_name);&lt;/P&gt;&lt;P&gt;g_form.setValue('u_emp_bg', gr.u_segment);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can dot.walk to these fields on the form but the issue is the business wants to rename fields from whats in the sys_user table and it can't be a global change.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 12:00:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987762#M644688</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T12:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987763#M644689</link>
      <description>&lt;P&gt;HI Michelle,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Please use get reference callback instead of using Gliderecord in client script.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://www.servicenowguru.com/scripting/client-scripts-scripting/gform-getreference-callback/" title="https://www.servicenowguru.com/scripting/client-scripts-scripting/gform-getreference-callback/"&gt;https://www.servicenowguru.com/scripting/client-scripts-scripting/gform-getreference-callback/&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 12:06:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987763#M644689</guid>
      <dc:creator>Gaurav Bajaj</dc:creator>
      <dc:date>2018-01-19T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987764#M644690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In client scripts you can't use the GlideRecord Object in client side scripts,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In client side available only g_form and g_user objects to get the form data and current loggedin user info.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Change following code as ur requirement&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;CODE class="ng-binding language-javascript" style="font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-size: inherit;"&gt;&lt;SPAN class="keyword token" style="font-weight: bold; font-family: monospace !important; color: #0077aa;"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function" style="color: #dd4a68;"&gt;onChange&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;(&lt;/SPAN&gt;control&lt;SPAN class="punctuation token" style="color: #999999;"&gt;,&lt;/SPAN&gt; oldValue&lt;SPAN class="punctuation token" style="color: #999999;"&gt;,&lt;/SPAN&gt; newValue&lt;SPAN class="punctuation token" style="color: #999999;"&gt;,&lt;/SPAN&gt; isLoading&lt;SPAN class="punctuation token" style="color: #999999;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token" style="color: #999999;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &lt;SPAN class="keyword token" style="font-weight: bold; font-family: monospace !important; color: #0077aa;"&gt;var&lt;/SPAN&gt; caller &lt;SPAN class="operator token" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;=&lt;/SPAN&gt; g_form&lt;SPAN class="punctuation token" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function" style="color: #dd4a68;"&gt;getReference&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token" style="color: #669900;"&gt;'caller_id'&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;,&lt;/SPAN&gt; doAlert&lt;SPAN class="punctuation token" style="color: #999999;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token" style="color: #708090;"&gt;// doAlert is our callback function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token" style="font-weight: bold; font-family: monospace !important; color: #0077aa;"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function" style="color: #dd4a68;"&gt;doAlert&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;(&lt;/SPAN&gt;caller&lt;SPAN class="punctuation token" style="color: #999999;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token" style="color: #999999;"&gt;{&lt;/SPAN&gt; &lt;SPAN class="comment token" style="color: #708090;"&gt;//reference is passed into callback as first arguments&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp; &lt;SPAN class="keyword token" style="font-weight: bold; font-family: monospace !important; color: #0077aa;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token" style="color: #999999;"&gt;(&lt;/SPAN&gt;caller&lt;SPAN class="punctuation token" style="color: #999999;"&gt;.&lt;/SPAN&gt;vip &lt;SPAN class="operator token" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token" style="color: #669900;"&gt;'true'&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &lt;SPAN class="token function" style="color: #dd4a68;"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token" style="color: #669900;"&gt;'Caller is a VIP!'&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token" style="color: #999999;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hit âœ…Correct, â­�ï¸�Helpful, or â�£ï¸�Like, Endorsers depending on the impact of the response &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="344_542.09375_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;@Lakshmaiah Dumpala&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 12:07:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987764#M644690</guid>
      <dc:creator>Lakshmaiah Dump</dc:creator>
      <dc:date>2018-01-19T12:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987765#M644691</link>
      <description>&lt;P&gt;You should not use GlideRecord in client script.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It's better and efficient to use GlideAjax.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="How to Write Smart GlideAjax Quickly [Part 1]" __default_attr="7069" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="How to Write Smart GlideAjax Quickly [Part 1]" data-renderedposition="73.45169830322266_7.997159004211426_302_15" href="https://www.servicenow.com/community?id=community_blog&amp;amp;sys_id=f8ccee25dbd0dbc01dcaf3231f961978"&gt;How to Write Smart GlideAjax Quickly [Part 1]&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 14:00:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987765#M644691</guid>
      <dc:creator>sachin_namjoshi</dc:creator>
      <dc:date>2018-01-19T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987766#M644692</link>
      <description>&lt;P&gt;Thanks Gaurav&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have tried to use the &lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;get reference callback alert is returning "undefined"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (isLoading || newValue == '') { &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var employee = g_form.getReference('u_emp_name', setemployeedetails );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function setemployeedetails(empName) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;alert(employee);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;g_form.setValue('u_emp_id', employee.user_name);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;g_form.setValue('u_emp_bg', employee.u_segment);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 14:39:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987766#M644692</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987767#M644693</link>
      <description>&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Thanks Lakshmaiah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;I have tried to use the &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;get reference callback alert is returning "undefined"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; if (isLoading || newValue == '') {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;var employee = g_form.getReference('u_emp_name', setemployeedetails );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function setemployeedetails(empName) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;alert(employee);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_id', employee.user_name);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_bg', employee.u_segment);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:07:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987767#M644693</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T16:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987768#M644694</link>
      <description>&lt;P&gt;I think it should be like,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; if (isLoading || newValue == '') {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;var employee = g_form.getReference('u_emp_name', setemployeedetails );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function setemployeedetails(&lt;STRONG style="color: #666666; font-family: arial, sans-serif;"&gt;employee&lt;/STRONG&gt;) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;alert(employee);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_id', employee.user_name);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_bg', employee.u_segment);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:11:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987768#M644694</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2018-01-19T16:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987769#M644695</link>
      <description>&lt;P&gt;thanks Shishir &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;this is returning &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/61577i6D5167A37EAF9188/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:20:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987769#M644695</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987770#M644696</link>
      <description>&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;I think, that's fine, what you get with there alerts?&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; if (isLoading || newValue == '') {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;var employee = g_form.getReference('u_emp_name', setemployeedetails );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;function setemployeedetails(&lt;STRONG style="font-style: inherit;"&gt;employee&lt;/STRONG&gt;) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;STRONG style="color: #666666; font-family: arial, sans-serif;"&gt;alert(employee.&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;user_name&lt;/SPAN&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;STRONG style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;alert(employee.&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;u_segment&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_id', employee.user_name);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;g_form.setValue('u_emp_bg', employee.u_segment);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:24:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987770#M644696</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2018-01-19T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987771#M644697</link>
      <description>&lt;P&gt;yes shishir, it is alerting the correct value now but not setting the values in fields &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:29:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987771#M644697</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T16:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987772#M644698</link>
      <description>&lt;P&gt;is &lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_id and &lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_bg are reference field? Can you please provide some screenshot?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:33:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987772#M644698</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2018-01-19T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987773#M644699</link>
      <description>&lt;P&gt;yes both are reference fields to sys user table &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_id&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/61575i6F4CFB1311756D47/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG style="color: #666666; font-family: arial, sans-serif;"&gt;u_emp_bg&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/61576i42FC1B94824698DD/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:46:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987773#M644699</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T16:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987774#M644700</link>
      <description>&lt;P&gt;if they are the reference fields then you will not be able to see the user_name and emp_bg as it will always show the field value which is set for display true in sys_user table. I think these fields should be string field.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:51:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987774#M644700</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2018-01-19T16:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the sys_user table from client script (scope app)</title>
      <link>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987775#M644701</link>
      <description>&lt;P&gt;Thanks Shishir &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Appreciate all your help &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:57:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/querying-the-sys-user-table-from-client-script-scope-app/m-p/1987775#M644701</guid>
      <dc:creator>MKelly83</dc:creator>
      <dc:date>2018-01-19T16:57:12Z</dc:date>
    </item>
  </channel>
</rss>

