<?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: GlideRecord/Script in User Criteria in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074359#M30748</link>
    <description>&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Actually this is perfect&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;answer();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;function answer(){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;var getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;getDomain.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if (getDomain.next())&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;if(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;getDomain&lt;/SPAN&gt;.location.u_region == 'EMEA' &amp;amp;&amp;amp; getDomain.u_ad_domain == 'CTS'){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN class="js-outcome-helpful-counts-container j-outcome-helpful-counts-container font-color-okay" data-display-overall="true" data-helpful-count="0" data-object-id="1331946" data-object-type="2" data-overall-count="0" style="margin: 1em 0; font-weight: bold; font-style: inherit; font-size: 13px; font-family: inherit; color: #d1222b;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P class="user-signature" style="font-family: arial, sans-serif;"&gt;Thanks, &lt;BR /&gt;Sanjiv &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Jan 2018 18:54:20 GMT</pubDate>
    <dc:creator>SanjivMeher</dc:creator>
    <dc:date>2018-01-25T18:54:20Z</dc:date>
    <item>
      <title>GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074354#M30743</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I'm building a User Criteria and need to have the script check the value of field on the logged in user's record in sys_user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying a couple ways to do this and not finding the correct script. &amp;nbsp; Anyone see why this isn't working? &amp;nbsp; the top part that is querying to get the gr.u_region is working fine. &amp;nbsp; It's the getDomain part that does not seem to be working. &amp;nbsp; The field on the sys_user table I'm looking to see if it "== 'CTS'" is [u_ad_domain].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answer();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function answer(){&lt;/P&gt;&lt;P&gt;var loc = gs.getUser().getRecord().getValue('location');&lt;/P&gt;&lt;P&gt;var gr = new GlideRecord('cmn_location');&lt;/P&gt;&lt;P&gt;gr.get(loc);&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;P&gt;var getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;P&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;P&gt;getDomain.query();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(gr.u_region == 'EMEA' &amp;amp;&amp;amp; getDomain.u_ad_domain == 'CTS'){&lt;/P&gt;&lt;P&gt;return true;&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;</description>
      <pubDate>Thu, 25 Jan 2018 18:21:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074354#M30743</guid>
      <dc:creator>patricklatella</dc:creator>
      <dc:date>2018-01-25T18:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074355#M30744</link>
      <description>&lt;P&gt;can u pls explain the exact requirement of this user criteria.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:31:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074355#M30744</guid>
      <dc:creator>VaranAwesomenow</dc:creator>
      <dc:date>2018-01-25T18:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074356#M30745</link>
      <description>&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;thanks for the reply. &amp;nbsp; I'm looking to use this User Criteria to restrict the accessibility of a catalog item to users in our company who have a specific region and AD Domain as specified on their user record.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:35:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074356#M30745</guid>
      <dc:creator>patricklatella</dc:creator>
      <dc:date>2018-01-25T18:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074357#M30746</link>
      <description>&lt;P&gt;You dont need the scripts lines which are strike out.&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;answer();&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 answer(){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;var loc = gs.getUser().getRecord().getValue('location');&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;var gr = new GlideRecord('cmn_location');&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;gr.get(loc);&lt;/SPAN&gt;&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 style="font-family: arial, sans-serif; color: #666666;"&gt;var getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.query();&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;if(gr.u_region == 'EMEA' &amp;amp;&amp;amp; getDomain.u_ad_domain == 'CTS'){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;return true;&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;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:50:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074357#M30746</guid>
      <dc:creator>SanjivMeher</dc:creator>
      <dc:date>2018-01-25T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074358#M30747</link>
      <description>&lt;P&gt;Added one correction to script&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;answer();&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 answer(){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;var getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.query();&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;if(&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;getDomain&lt;/SPAN&gt;.location.u_region == 'EMEA' &amp;amp;&amp;amp; getDomain.u_ad_domain == 'CTS'){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;return true;&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;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:53:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074358#M30747</guid>
      <dc:creator>SanjivMeher</dc:creator>
      <dc:date>2018-01-25T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074359#M30748</link>
      <description>&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Actually this is perfect&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;answer();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;function answer(){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;var getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;getDomain.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if (getDomain.next())&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;if(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;getDomain&lt;/SPAN&gt;.location.u_region == 'EMEA' &amp;amp;&amp;amp; getDomain.u_ad_domain == 'CTS'){&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN class="js-outcome-helpful-counts-container j-outcome-helpful-counts-container font-color-okay" data-display-overall="true" data-helpful-count="0" data-object-id="1331946" data-object-type="2" data-overall-count="0" style="margin: 1em 0; font-weight: bold; font-style: inherit; font-size: 13px; font-family: inherit; color: #d1222b;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P class="user-signature" style="font-family: arial, sans-serif;"&gt;Thanks, &lt;BR /&gt;Sanjiv &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:54:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074359#M30748</guid>
      <dc:creator>SanjivMeher</dc:creator>
      <dc:date>2018-01-25T18:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074360#M30749</link>
      <description>&lt;P&gt;we need highlighted line as well.&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 getDomain = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.addQuery('sys_id',gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;getDomain.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;i&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;f(getDomain.next()){&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:55:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074360#M30749</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2018-01-25T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074361#M30750</link>
      <description>&lt;P&gt;Ok based on my understanding of the requirement below script should work.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;answer = checkUser();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//gs.print(checkUser());&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function checkUser() {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var return_flag = false;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var grUser = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;grUser.addQuery('sys_id', gs.getUserID());&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;grUser.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(grUser.next()) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (grUser.location.u_region == 'EMEA' &amp;amp;&amp;amp; grUser.u_ad_domain == 'CTS') {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//if (grUser.location.name == '100 South Charles Street, Baltimore,MD') {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;return_flag = true;&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;return return_flag;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:57:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074361#M30750</guid>
      <dc:creator>VaranAwesomenow</dc:creator>
      <dc:date>2018-01-25T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074362#M30751</link>
      <description>&lt;P&gt;hey everyone, thanks so much for the input! &amp;nbsp; At first I tried each of these scripts and none worked...but I'm wondering if there's a funny issue related to our recent upgrade in DEV to Jakarta. &amp;nbsp; To create my User Criteria record I did an "Insert &amp;amp; Stay" from an existing record, as opposed to creating "New". &amp;nbsp; Then tried the above scripts above with no luck.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;When I went ahead and just created a User Criteria just from "New", both Anil's and Sanjiv's scripts work.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Not sure if that's expected behavior, but good to know moving forward.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;thanks guys!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 21:47:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074362#M30751</guid>
      <dc:creator>patricklatella</dc:creator>
      <dc:date>2018-01-25T21:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074363#M30752</link>
      <description>&lt;P&gt;good to know Patrick &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_141.84375_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;</description>
      <pubDate>Thu, 25 Jan 2018 22:20:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074363#M30752</guid>
      <dc:creator>VaranAwesomenow</dc:creator>
      <dc:date>2018-01-25T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074364#M30753</link>
      <description>&lt;P&gt;We were creating a similar script (a little different) and were having some issues. We resolved them by replacing "gs.getUserID()" with "user_name". We did find this docs site:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-management/task/t_CreateAUserCriteriaRecord.html" rel="nofollow"&gt;https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-management/task/t_CreateAUserCriteriaRecord.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and that's where they recommended the user_name. They specifically advise against gs.getUser() which I assumed would also apply to gs.getUserID(). It sounds like you got this working anyways but just an FYI on what we found.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:06:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074364#M30753</guid>
      <dc:creator>Chris Sanford1</dc:creator>
      <dc:date>2020-04-22T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: GlideRecord/Script in User Criteria</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074365#M30754</link>
      <description>&lt;P&gt;Good to know, thanks Chris!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:17:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/gliderecord-script-in-user-criteria/m-p/1074365#M30754</guid>
      <dc:creator>patricklatella</dc:creator>
      <dc:date>2020-04-29T20:17:22Z</dc:date>
    </item>
  </channel>
</rss>

