| 
 | 1 | +<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">  | 
 | 2 | +    <scan_table_check action="INSERT_OR_UPDATE">  | 
 | 3 | +        <active>true</active>  | 
 | 4 | +        <advanced>false</advanced>  | 
 | 5 | +        <category>upgradability</category>  | 
 | 6 | +        <conditions table="sys_dictionary">internal_type=reference^reference=sys_choice^EQ<item display_table="sys_glide_object" display_value="Reference" endquery="false" field="internal_type" goto="false" newquery="false" operator="=" or="false" value="reference"/>  | 
 | 7 | +            <item endquery="false" field="reference" goto="false" newquery="false" operator="=" or="false" value="sys_choice"/>  | 
 | 8 | +            <item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>  | 
 | 9 | +        </conditions>  | 
 | 10 | +        <description>The Choice table should not be used as the reference table for a Reference type field. Reference fields store the sys_id of the corresponding record in the reference table and show the specified display value. For example: the caller_id field stores the sys_id of a record from the user table and displays the corresponding name value. This presents a problem when using the sys_choice table, because existing records are deleted and replaced when choices are modified. This causes a new sys_id to be generated for each record in the choice list. So the sys_id stored in the Reference field is no longer a valid value and the reference is broken.</description>  | 
 | 11 | +        <documentation_url>https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0813643</documentation_url>  | 
 | 12 | +        <finding_type>scan_finding</finding_type>  | 
 | 13 | +        <name>Do not reference sys_choice table</name>  | 
 | 14 | +        <priority>3</priority>  | 
 | 15 | +        <resolution_details/>  | 
 | 16 | +        <run_condition/>  | 
 | 17 | +        <score_max>100</score_max>  | 
 | 18 | +        <score_min>0</score_min>  | 
 | 19 | +        <score_scale>1</score_scale>  | 
 | 20 | +        <script><![CDATA[(function (engine) {  | 
 | 21 | +
  | 
 | 22 | +    // Add your code here  | 
 | 23 | +
  | 
 | 24 | +})(engine);]]></script>  | 
 | 25 | +        <short_description>Do not reference sys_choice table</short_description>  | 
 | 26 | +        <sys_class_name>scan_table_check</sys_class_name>  | 
 | 27 | +        <sys_created_by>ronald.karim</sys_created_by>  | 
 | 28 | +        <sys_created_on>2024-10-04 19:35:57</sys_created_on>  | 
 | 29 | +        <sys_id>6b1a4ee9c34d9210193f37cc0501312e</sys_id>  | 
 | 30 | +        <sys_mod_count>0</sys_mod_count>  | 
 | 31 | +        <sys_name>Do not reference sys_choice table</sys_name>  | 
 | 32 | +        <sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>  | 
 | 33 | +        <sys_policy/>  | 
 | 34 | +        <sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>  | 
 | 35 | +        <sys_update_name>scan_table_check_6b1a4ee9c34d9210193f37cc0501312e</sys_update_name>  | 
 | 36 | +        <sys_updated_by>ronald.karim</sys_updated_by>  | 
 | 37 | +        <sys_updated_on>2024-10-04 19:35:57</sys_updated_on>  | 
 | 38 | +        <table>sys_dictionary</table>  | 
 | 39 | +        <use_manifest>false</use_manifest>  | 
 | 40 | +    </scan_table_check>  | 
 | 41 | +    <sys_translated_text action="delete_multiple" query="documentkey=6b1a4ee9c34d9210193f37cc0501312e"/>  | 
 | 42 | +</record_update>  | 
0 commit comments