<?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: Applying reference qualifiers on standard change template proposals in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2805163#M1077019</link>
    <description>&lt;P&gt;It looks like this approach is no longer possible&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0714582" target="_blank"&gt;Standard Change template proposals do not honor reference qualifiers on change_request table fields - Support and Troubleshooting (servicenow.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;especially if what you want to edit is part of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;std_chg_template_val_render&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 16:51:13 GMT</pubDate>
    <dc:creator>janlendl</dc:creator>
    <dc:date>2024-01-25T16:51:13Z</dc:date>
    <item>
      <title>Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629830#M286756</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is related to standard change template proposal screen. In our environment while proposing change template 'Configuration field' is one of the mandatory field.&lt;/P&gt;&lt;P&gt;And using Configuration field look up i am able to select any CI record .But my requirement here is to restrict CI selection only for certain class.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/189184i9B03C24E890CD240/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/189184i9B03C24E890CD240/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" 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;Is there anyway to apply reference qualifiers on change template proposal screen? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 19:08:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629830#M286756</guid>
      <dc:creator>Ashok Kumar Am1</dc:creator>
      <dc:date>2017-10-25T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629831#M286757</link>
      <description>&lt;P&gt;We are wanting to do something similar.&amp;nbsp; Did you ever get any solutions to this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 22:35:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629831#M286757</guid>
      <dc:creator>Eric_Gauthier</dc:creator>
      <dc:date>2018-07-09T22:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629832#M286758</link>
      <description>&lt;P&gt;I'm guessing no one has found a way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:53:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629832#M286758</guid>
      <dc:creator>Daniel Peel</dc:creator>
      <dc:date>2018-10-11T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629833#M286759</link>
      <description>&lt;P&gt;I've never worked on this but can't you right click and define dictionary on the column ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is this on the portal side or on the fullfillter UI? which table is this ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:14:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629833#M286759</guid>
      <dc:creator>Yifeng Zhang</dc:creator>
      <dc:date>2018-10-11T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629834#M286760</link>
      <description>&lt;P&gt;Negative... they are not really fields you can right click on... because they are being stored in the template_values variable&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:38:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629834#M286760</guid>
      <dc:creator>Daniel Peel</dc:creator>
      <dc:date>2018-10-11T17:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629835#M286761</link>
      <description>&lt;P&gt;I found the catalog item, but I'm on Kingston so the propose standard change form no longer has that CI item reference variable for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, if that is a type of reference variable, you can go into the table contain all the variables, find that variable, give it a ref qual . I'm pretty sure you can do that with a reference variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can give ref qual to either reference variable, choice look up, multi choice look up.. I think, off top my head&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;item_option_new&amp;nbsp; &amp;nbsp;is the table&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:53:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629835#M286761</guid>
      <dc:creator>Yifeng Zhang</dc:creator>
      <dc:date>2018-10-11T17:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629836#M286762</link>
      <description>&lt;P&gt;I implemented that. Let's say you want to make a reference qualifier to the for Configuration item on the template. Then you have to create the Before Query Business Rule that looks like this (on cmdb_ci table)&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;(function executeRule(current, previous /*null when async*/) {

	var targetName = gs.action.getGlideURI().getMap().get('sysparm_target');
	if (targetName.indexOf('change_request.cmdb_ci') &amp;gt; -1) {
		current.addQuery('install_status', 1); // installed
	}
	

})(current, previous);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you click the magnifying glass, there is a parameter in URL sysparm_target that always differ a little bit. On the change form it's just change_request.cmdb_ci, and on change proposal, it has format like change_request.cmdb_ci.{sys_id format}. So you can detect it like this. Then you are able to provide only specific CIs after clicking on magnifying glass.&lt;/P&gt;
&lt;P&gt;You should also take care about the putting the Name of CI directly to the field. You cannot find the CI in the list after clicking on magnifying glass, but when you put the name into the field, it behaves as valid. Here I suggest to use client script with AJAX to check if the user put there valid CI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 21:17:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629836#M286762</guid>
      <dc:creator>tomas_hanousek1</dc:creator>
      <dc:date>2018-10-11T21:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629837#M286763</link>
      <description>&lt;P&gt;Your answer should be marked correct. Your script saved some of us a lot of time. Thank you for posting your solution.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:43:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629837#M286763</guid>
      <dc:creator>Parneet1</dc:creator>
      <dc:date>2020-03-13T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629838#M286764</link>
      <description>&lt;P&gt;Thanks! tomas_hanousek&lt;/P&gt;
&lt;P&gt;But how should we give the sysid as it keeps changing always.&amp;nbsp;If you have implemented this&amp;nbsp; change_request.cmdb_ci&lt;STRONG&gt;.{sys_id format}&lt;/STRONG&gt;.&amp;nbsp; Could you please help me getting the value for&amp;nbsp;&lt;STRONG&gt;{sys_id format}.&amp;nbsp;&lt;/STRONG&gt;And if i only use change_request.cmdb_ci, it is causing an issue in other configurations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 06:46:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629838#M286764</guid>
      <dc:creator>Rashmi47</dc:creator>
      <dc:date>2020-07-21T06:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629839#M286765</link>
      <description>&lt;P&gt;CAUTION!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The above solution worked but however this BR has to be turned off in our instances due to the excessive logging in our log table which&amp;nbsp;occupied nearly 90% of data. We had to turn this off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please test it for logging in your sub prod instances if you are use this BR before migrating it to PROD.&lt;/P&gt;
&lt;P&gt;Good Luck!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Shan&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:27:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629839#M286765</guid>
      <dc:creator>Shankar Manohar</dc:creator>
      <dc:date>2020-10-13T13:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629840#M286766</link>
      <description>&lt;P&gt;**WARNING**&lt;/P&gt;
&lt;P&gt;We implemented this on the group table and in about 2 weeks we nearly ran out of disk space. Please see the HI Support reasoning below. &amp;nbsp;I know its not exactly the code above but just a warning...&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="ng-scope"&gt;- The source of this appears to be the following Javascript error: Root cause of JavaScriptException: java.lang.NullPointerException&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;-- This has been traced to business rule 'ResponsibleCAB_Template Ref Qualifier' which runs against 'sys_group' -- &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;The error is caused by the following line: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;var targetName = gs.action.getGlideURI().getMap().get('sysparm_target'); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;-- If this gs.action function is not accessible within the execution scope it will fail with the NULL Pointer error that we have sighted &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;-- This appears to be the scenario when this script is run from any non-interactive sessions, such as a background worker thread &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;-- At present these messages appear to contribute to around 99% of the table size&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:38:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629840#M286766</guid>
      <dc:creator>joeyfrease</dc:creator>
      <dc:date>2020-10-13T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629841#M286767</link>
      <description>&lt;P&gt;Has anyone found a solution to this issue?&lt;/P&gt;
&lt;P&gt;Can we fix what is causing the error?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 22:14:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629841#M286767</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-06-02T22:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629842#M286768</link>
      <description>&lt;P&gt;Try wrapping the whole thing in a try/catch, I don't see the errors in the log any more after putting the try/catch around it.&amp;nbsp; &lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;(function executeRule(current, previous /*null when async*/) {
	try {
	if (gs.action.getGlideURI().getMap().get('sysparm_target')){
		
		var targetName = gs.action.getGlideURI().getMap().get('sysparm_target');
		if (targetName.indexOf('change_request.u_approver') &amp;gt; -1) {
			current.addEncodedQuery(new StdChangeUtils().getMgrApprovers());
		}
		if (targetName.indexOf('change_request.u_avp_approval') &amp;gt; -1) {
			current.addEncodedQuery(new StdChangeUtils().getAvpApprovers());
		}
	}
	}
	catch (e){
		
	}
})(current, previous);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jun 2022 03:36:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/1629842#M286768</guid>
      <dc:creator>Daniel Peel</dc:creator>
      <dc:date>2022-06-03T03:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2670687#M1035432</link>
      <description>&lt;P&gt;Do you happen to have the client script example to validate the CI once it is chosen if they do type the name directly?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 17:13:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2670687#M1035432</guid>
      <dc:creator>Sara Salerno</dc:creator>
      <dc:date>2023-09-13T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2805163#M1077019</link>
      <description>&lt;P&gt;It looks like this approach is no longer possible&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0714582" target="_blank"&gt;Standard Change template proposals do not honor reference qualifiers on change_request table fields - Support and Troubleshooting (servicenow.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;especially if what you want to edit is part of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;std_chg_template_val_render&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 16:51:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2805163#M1077019</guid>
      <dc:creator>janlendl</dc:creator>
      <dc:date>2024-01-25T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2805165#M1077021</link>
      <description>&lt;P&gt;I think this will only work if it doesn't belong to&amp;nbsp;&lt;EM&gt;std_chg_template_val_render&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;please see article below&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0714582" target="_blank"&gt;Standard Change template proposals do not honor reference qualifiers on change_request table fields - Support and Troubleshooting (servicenow.com)&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 16:53:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2805165#M1077021</guid>
      <dc:creator>janlendl</dc:creator>
      <dc:date>2024-01-25T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817010#M1080733</link>
      <description>&lt;P&gt;Amazing workaround!! It works perfectly to my requirement&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 13:09:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817010#M1080733</guid>
      <dc:creator>josePinho</dc:creator>
      <dc:date>2024-02-06T13:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817026#M1080738</link>
      <description>&lt;P&gt;Did you found other way to reach this requirement?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 13:15:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817026#M1080738</guid>
      <dc:creator>josePinho</dc:creator>
      <dc:date>2024-02-06T13:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817236#M1080805</link>
      <description>&lt;P&gt;This isn't a reference qualifier, it's a business rule... to replace the actions of a reference qualifier basically, and in UTAH this does still work, including the try/catch&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:03:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2817236#M1080805</guid>
      <dc:creator>Daniel Peel</dc:creator>
      <dc:date>2024-02-06T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applying reference qualifiers on standard change template proposals</title>
      <link>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2945477#M1117319</link>
      <description>&lt;P&gt;how to use client script on the reference fields under the change request values field?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 14:33:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/applying-reference-qualifiers-on-standard-change-template/m-p/2945477#M1117319</guid>
      <dc:creator>Nidubrolr</dc:creator>
      <dc:date>2024-05-28T14:33:34Z</dc:date>
    </item>
  </channel>
</rss>

