<h2>Indicator result supporting data showing sys id for reference field</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>When we execute an indicator, in the supporting data for the Responsible team column, we get sys id instead of the group name. This is not the case for all the indicators. For indicators with the 'Assignment group' column in the supporting data, it shows the group name correctly.</li></ul></section></div><div ><h3 >Release</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>New York Patch 9a.</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>The Supporting Data section is representative of the sn_grc_supporting_data table. The reason for the reference fields to display sys_id is because the sys_id values get stored in the Field value column of this table. And the reason for that to happen only for script indicators is because of the code in ScriptIndicatorStrategyBase script include.<br /></li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>To solve the issue, please follow the below: ScriptIndicatorStrategyBase = <br /><br />If you notice Line 61,<br /><br />var fieldValue = record.getValue(fields[j]);<br /><br />In this line, record.getValue gets the value of the field instead of the display value and hence we see that the sys_id gets stored in the Field value column of the sn_grc_supporting_data table.<br /><br />If we change this line to,<br />var fieldValue = record.getElement(fields[j]).getDisplayValue();<br /><br />The display value should get stored and the sys_id doesn't show up in the Supporting Data section.<br /><br /><br /></li></ul></section></div></article></div>