<?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: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2565716#M998556</link>
    <description>&lt;P&gt;Unfortunately, this is exactly what I did prior to posting for assistance here. This doesn't change anything within the the VATopicsHelper script that is being pulled in the dynamic greeting. Attached is a screenshot of a test I did by commenting out the default code and adding the new lines as suggest. The result is still the same output as if no code was altered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/262184iE8E508A05DD9DA51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 16:41:43 GMT</pubDate>
    <dc:creator>Wardma</dc:creator>
    <dc:date>2023-05-18T16:41:43Z</dc:date>
    <item>
      <title>Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2564855#M998201</link>
      <description>&lt;P&gt;Ive been racking my brain for a few days trying to understand where to change the sc_request variable to show the RITM instead of the REQ when the Virtual Agent lists out the Requests and Incidents. So far, Ive not been able to locate a single solution. Below is the OOTB script unmodified and I've tried changing the sc_request to sc_req_item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;record_update table="sys_script_include"&amp;gt;&amp;lt;sys_script_include action="INSERT_OR_UPDATE"&amp;gt;&amp;lt;access&amp;gt;public&amp;lt;/access&amp;gt;&amp;lt;active&amp;gt;true&amp;lt;/active&amp;gt;&amp;lt;api_name&amp;gt;global.VATopicsHelper&amp;lt;/api_name&amp;gt;&amp;lt;caller_access/&amp;gt;&amp;lt;client_callable&amp;gt;false&amp;lt;/client_callable&amp;gt;&amp;lt;description&amp;gt;Common helper functions used in the example topics&amp;lt;/description&amp;gt;&amp;lt;name&amp;gt;VATopicsHelper&amp;lt;/name&amp;gt;&amp;lt;script&amp;gt;&amp;lt;![CDATA[var VATopicsHelper = Class.create();
VATopicsHelper.prototype = {
    initialize: function() {},

    getTableRecords: function(tblName, encQuery) {
        var records = [];

        var grCnt = new GlideRecord(tblName);
        if (encQuery != '')
            grCnt.addEncodedQuery(encQuery);
        grCnt.query();

        while (grCnt.next())
            records.push(grCnt.getUniqueValue());
        return records;
    },

    getUserOpenTicketsMessage: function(user, incQuery, hrQuery, reqQuery, portalName, userLanguage) {
        this.portalName = portalName;
        if (gs.nil(userLanguage))
            userLanguage = vaContext.getRequesterLang();
        var ints = this.getTableRecords('incident', incQuery);
        var reqs = this.getTableRecords('sc_request', reqQuery);
        var intCnt = ints.length;
        var reqCnt = reqs.length;
        var hrCnt = 0;
        var hrCases = [];
        if (!GlidePluginManager.isActive('com.sn_hr_core'))
            hrCnt = -1;
        else {
            try { //try catch, so any cross scope error for HR doesnt interrupt the flow
                hrCases = this.getTableRecords('sn_hr_core_case', hrQuery);
                hrCnt = hrCases.length;
            } catch (e) {
                gs.info("There was an error processing HR cases:" + e);
            }
        }

        var msg = '';

        var incUrl = this._getSPUrl('incident', incQuery, ints);
        var hrUrl = this._getSPUrl('sn_hr_core_case', hrQuery, hrCases);
        var reqUrl = this._getSPUrl('sc_request', reqQuery, reqs);

        var incLabel = (intCnt &amp;gt; 1) ? gs.getMessageLang('Incidents', userLanguage) : gs.getMessageLang('Incident', userLanguage);
        var hrLabel = (hrCnt &amp;gt; 1) ? gs.getMessageLang('HR Cases', userLanguage) : gs.getMessageLang('HR Case', userLanguage);
        var reqLabel = (reqCnt &amp;gt; 1) ? gs.getMessageLang('Requests', userLanguage) : gs.getMessageLang('Request', userLanguage);

        var tickets = [];
        if (intCnt &amp;gt; 0) {
            tickets.push(incUrl);
            tickets.push(intCnt.toFixed());
            tickets.push(incLabel);
        }
        if (hrCnt &amp;gt; 0) {
            tickets.push(hrUrl);
            tickets.push(hrCnt.toFixed());
            tickets.push(hrLabel);
        }
        if (reqCnt &amp;gt; 0) {
            tickets.push(reqUrl);
            tickets.push(reqCnt.toFixed());
            tickets.push(reqLabel);
        }

        if (tickets.length == 0)
            return '';

        var cnt = (tickets.length / 3);
        switch (cnt) {
            case 1:
                msg += gs.getMessageLang('ITSMVA_DynamicGreeting_1', userLanguage, tickets);
                break;
            case 2:
                msg += gs.getMessageLang('ITSMVA_DynamicGreeting_2', userLanguage, tickets);
                break;
            case 3:
                msg += gs.getMessageLang('ITSMVA_DynamicGreeting_3', userLanguage, tickets);
                break;
        }
        return msg;
    },

    _getSPUrl: function(table, filter, records) {
        var baseURL = gs.getProperty('glide.servlet.uri');
        var link = baseURL + this.portalName + '?id=list&amp;amp;table=' + table + '&amp;amp;filter=' + filter;
        if (records.length == 1)
            link = baseURL + this.portalName + '?id=form&amp;amp;table=' + table + '&amp;amp;sys_id=' + records.join();

        return link;
    },

    getOutages: function(outageTbl, encQuery, limit, userLanguage) {
        var message = '';
        if (!limit) limit = 3;
        if (gs.nil(userLanguage))
            userLanguage = vaContext.getRequesterLang();

        var grOutage = new GlideRecord(outageTbl);
        grOutage.addEncodedQuery(encQuery);
        if (limit &amp;gt; 0)
            grOutage.setLimit(limit);
        grOutage.orderByDesc('begin');
        grOutage.query();
        message += (grOutage.getRowCount() &amp;gt; 0) ? gs.getMessageLang('Service degradations I am currently aware of ', userLanguage) : '';
        while (grOutage.next()) {
            var msg = '&amp;lt;li&amp;gt;';
            var type = grOutage.getDisplayValue('type');
            var name = grOutage.getDisplayValue('cmdb_ci');
            var start_time = new GlideDateTime(grOutage.getValue('begin'));
            var end_time = grOutage.getValue('end');
            msg += gs.getMessageLang('{0} of {1} that began at {2}.', userLanguage, [type, name, start_time.getDisplayValue()]);
            if (end_time != '') {
                msg += gs.getMessageLang(' The {0} is expected to end at {1}.', userLanguage, [type, (new GlideDateTime(end_time)).getDisplayValue()]);
            }
            msg += '&amp;lt;/li&amp;gt;';
            message += msg;
        }
        return message;
    },
    outagesInfo: function(outageTbl, encQuery, limit, userLanguage) {
        var message = [];
        if (gs.nil(userLanguage))
            userLanguage = vaContext.getRequesterLanguage();
        if (!limit) limit = 3;
        var grOutage = new GlideRecord(outageTbl);
        grOutage.addEncodedQuery(encQuery);
        if (limit &amp;gt; 0)
            grOutage.setLimit(limit);
        grOutage.orderByDesc('begin');
        grOutage.query();
        if (grOutage.getRowCount() &amp;gt; 0) {
            message.push(gs.getMessageLang('Service degradations I am currently aware of \n\n', userLanguage));
        }
        while (grOutage.next()) {
            var type = grOutage.getDisplayValue('type');
            var name = grOutage.getDisplayValue('cmdb_ci');
            var start_time = new GlideDateTime(grOutage.getValue('begin'));
            var end_time = grOutage.getValue('end');
            message.push("- ");
            message.push(gs.getMessageLang('{0} of {1} that began at {2}.', userLanguage, [type, name, start_time.getDisplayValue()]));
            if (end_time != '') {
                message.push(gs.getMessageLang(' The {0} is expected to end at {1}.', userLanguage, [type, (new GlideDateTime(end_time)).getDisplayValue()]));
            }
            message.push("\n\n");
        }
        return message.join('');
    },
    openTicketsInfo: function(deviceType, userLanguage, portalName) {
        var tables = [];
        var portal_pages = [];
        if (gs.nil(userLanguage))
            userLanguage = vaContext.getRequesterLang();
        if (gs.nil(portalName))
            portalName = vaVars.portalName;
        var records = this.getMyRequestSysIds(tables, portal_pages, deviceType);
        var recordsCount = records.length;
        var baseURL = gs.getProperty('glide.servlet.uri');
        var link = baseURL + portalName + '?id=my_requests';
        var reqLabel = (recordsCount &amp;gt; 1) ? gs.getMessageLang('Open Issues', userLanguage) : gs.getMessageLang('Open Issue', userLanguage);
        return gs.getMessageLang("You currently have [**{0} {1}**]({2})", userLanguage, [recordsCount.toFixed(), reqLabel, link]);
    },
    getMyRequestSysIds: function(tables, portal_pages, deviceType) {
        var ids = [];
        var rq_filter = new GlideRecord('request_filter');
        rq_filter.addActiveQuery();
        if (gs.nil(deviceType))
            deviceType = vaContext.deviceType;
        if (deviceType == 'android' || deviceType == 'ios') {
            // 100 Implies Mobile
            if (rq_filter.isValidField('applies_to'))
                rq_filter.addQuery('applies_to', 100);
        } else {
            // 1 Implies Service portal and 10 Implies Desktop/Service Portal
            if (rq_filter.isValidField('applies_to'))
                rq_filter.addQuery('applies_to', 1).addOrCondition('applies_to', 10);
        }
        rq_filter.query();
        while (rq_filter.next()) {
            var tableName = rq_filter.table_name;
            if (rq_filter.isValidField('table'))
                tableName = rq_filter.table;
            var gr = new GlideRecord(tableName);
            gr.addQuery(rq_filter.filter);
            gr.addActiveQuery();
            gr.query();
            while (gr.next()) {
                ids.push(gr.sys_id.toString());
                tables.push(rq_filter.table.toString());
                portal_pages.push(rq_filter.portal_page.id.toString());
            }
        }
        return ids;
    },
    openTicketsStatus: function(deviceType, userLanguage, portalName) {
        var statusMsg = [];
        if (gs.nil(userLanguage))
            userLanguage = vaContext.getRequesterLang();
        if (gs.nil(portalName))
            portalName = vaVars.portalName;
        var baseURL = gs.getProperty('glide.servlet.uri');
        var tables = [];
        var portal_pages = [];
        var records = this.getMyRequestSysIds(tables, portal_pages, deviceType);
        var recordsCount = records.length;
        for (var i = 0; i &amp;lt; recordsCount; i++) {
         // var statusLink = baseURL + portalName + '?id=' + portal_pages[i] + '&amp;amp;table=' + tables[i] + '&amp;amp;sys_id=' + records[i];
			var statusLink = baseURL + portalName + '?id=abbott_ticket' + '&amp;amp;sys_id=' + records[i];
            var statusGr = new GlideRecord(tables[i]);
            statusGr.get(records[i]);
            var statusRecordNumber = statusGr.number;
            var statusRecordShortDescription = statusGr.short_description;
            var statusRecordState = statusGr.state.getDisplayValue();
            if (tables[i] == 'sc_request') {
                var requestedItem = new GlideRecord('sc_req_item');
                requestedItem.addQuery('request', statusGr.sys_id);
                requestedItem.query();
                if (requestedItem.next()) {
                    statusRecordState = requestedItem.stage.getDisplayValue();
                }
            }

            if (statusRecordShortDescription != '') {
                statusMsg.push(gs.getMessageLang("[**{0}**]({1}) : **{2}** status is **{3}**", userLanguage, [statusRecordNumber, statusLink, statusRecordShortDescription, statusRecordState]));
            } else {
                statusMsg.push(gs.getMessageLang("[**{0}**]({1}) status is **{2}**", userLanguage, [statusRecordNumber, statusLink, statusRecordState]));
            }
        }
        return statusMsg.join('\n');
    },
    openTicketsCount: function(deviceType) {
        var tables = [];
        var portal_pages = [];
        var records = this.getMyRequestSysIds(tables, portal_pages, deviceType);
        return records.length;
    },
    type: 'VATopicsHelper'
};]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;sys_class_name&amp;gt;sys_script_include&amp;lt;/sys_class_name&amp;gt;&amp;lt;sys_created_by&amp;gt;admin&amp;lt;/sys_created_by&amp;gt;&amp;lt;sys_created_on&amp;gt;2020-03-03 22:44:35&amp;lt;/sys_created_on&amp;gt;&amp;lt;sys_id&amp;gt;e1bc2f8653170010c839ddeeff7b12f9&amp;lt;/sys_id&amp;gt;&amp;lt;sys_mod_count&amp;gt;30&amp;lt;/sys_mod_count&amp;gt;&amp;lt;sys_name&amp;gt;VATopicsHelper&amp;lt;/sys_name&amp;gt;&amp;lt;sys_package display_value="Service Management Virtual Agent Core" source="com.glideapp.sm_va_core"&amp;gt;794c47c8db230110bc06287f059619a3&amp;lt;/sys_package&amp;gt;&amp;lt;sys_policy/&amp;gt;&amp;lt;sys_scope display_value="Global"&amp;gt;global&amp;lt;/sys_scope&amp;gt;&amp;lt;sys_update_name&amp;gt;sys_script_include_e1bc2f8653170010c839ddeeff7b12f9&amp;lt;/sys_update_name&amp;gt;&amp;lt;sys_updated_by&amp;gt;WARDMA&amp;lt;/sys_updated_by&amp;gt;&amp;lt;sys_updated_on&amp;gt;2023-05-17 19:33:52&amp;lt;/sys_updated_on&amp;gt;&amp;lt;/sys_script_include&amp;gt;&amp;lt;/record_update&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 May 2023 22:02:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2564855#M998201</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2023-05-17T22:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2564990#M998262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/508349"&gt;@Wardma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to make the following changes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the "VATopicsHelper" script include.&lt;/LI&gt;&lt;LI&gt;Locate the getUserOpenTicketsMessage function.&lt;/LI&gt;&lt;LI&gt;Replace all occurrences of 'sc_request' with 'sc_req_item' in the function code.&lt;/LI&gt;&lt;LI&gt;Save the changes.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's the modified code for the getUserOpenTicketsMessage function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;getUserOpenTicketsMessage: function(user, incQuery, hrQuery, reqQuery, portalName, userLanguage) {
    this.portalName = portalName;
    if (gs.nil(userLanguage))
        userLanguage = vaContext.getRequesterLang();
    var ints = this.getTableRecords('incident', incQuery);
    var reqs = this.getTableRecords('sc_req_item', reqQuery); // Modified line
    var intCnt = ints.length;
    var reqCnt = reqs.length;
    var hrCnt = 0;
    var hrCases = [];
    if (!GlidePluginManager.isActive('com.sn_hr_core'))
        hrCnt = -1;
    else {
        try { //try catch, so any cross scope error for HR doesnt interrupt the flow
            hrCases = this.getTableRecords('sn_hr_core_case', hrQuery);
            hrCnt = hrCases.length;
        } catch (e) {
            gs.info("There was an error processing HR cases:" + e);
        }
    }

    var msg = '';

    var incUrl = this._getSPUrl('incident', incQuery, ints);
    var hrUrl = this._getSPUrl('sn_hr_core_case', hrQuery, hrCases);
    var reqUrl = this._getSPUrl('sc_req_item', reqQuery, reqs); // Modified line

    var incLabel = (intCnt &amp;gt; 1) ? gs.getMessageLang('Incidents', userLanguage) : gs.getMessageLang('Incident', userLanguage);
    var hrLabel = (hrCnt &amp;gt; 1) ? gs.getMessageLang('HR Cases', userLanguage) : gs.getMessageLang('HR Case', userLanguage);
    var reqLabel = (reqCnt &amp;gt; 1) ? gs.getMessageLang('Requests', userLanguage) : gs.getMessageLang('Request', userLanguage);

    var tickets = [];
    if (intCnt &amp;gt; 0) {
        tickets.push(incUrl);
        tickets.push(intCnt.toFixed());
        tickets.push(incLabel);
    }
    if (hrCnt &amp;gt; 0) {
        tickets.push(hrUrl);
        tickets.push(hrCnt.toFixed());
        tickets.push(hrLabel);
    }
    if (reqCnt &amp;gt; 0) {
        tickets.push(reqUrl);
        tickets.push(reqCnt.toFixed());
        tickets.push(reqLabel);
    }

    if (tickets.length == 0)
        return '';

    var cnt = (tickets.length / 3);
    switch (cnt) {
        case 1:
            msg += gs.getMessageLang('ITSMVA_DynamicGreeting_1', userLanguage, tickets);
            break;
        case 2:
            msg += gs.getMessageLang('ITSMVA_DynamicGreeting_2', userLanguage, tickets);
            break;
        case 3:
            msg += gs.getMessageLang('ITSMVA_DynamicGreeting_3', userLanguage, tickets);
            break;
    }
    return msg;
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ratnakar&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 06:10:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2564990#M998262</guid>
      <dc:creator>Ratnakar7</dc:creator>
      <dc:date>2023-05-18T06:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2565716#M998556</link>
      <description>&lt;P&gt;Unfortunately, this is exactly what I did prior to posting for assistance here. This doesn't change anything within the the VATopicsHelper script that is being pulled in the dynamic greeting. Attached is a screenshot of a test I did by commenting out the default code and adding the new lines as suggest. The result is still the same output as if no code was altered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/262184iE8E508A05DD9DA51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 16:41:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2565716#M998556</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2023-05-18T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2620512#M1018889</link>
      <description>&lt;P&gt;Changes were made but still the above REQ is showing rather than the sc_req_item. Everything in the virtual agent is still pretty much OOTB with some change to displayed messages.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:34:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2620512#M1018889</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2023-07-21T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2637745#M1024491</link>
      <description>&lt;P&gt;After much research and investigation into the script include that calls the items in the fields, I found that regardless of the changes you make in the script include if you want to change the items that are displayed would be to use the&amp;nbsp;service-now.com/request_filter_list.do and change the items one at a time unless you know exactly which one is being called for the item you want to change.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:15:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2637745#M1024491</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2023-08-08T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2788844#M1071413</link>
      <description>&lt;P&gt;Hi Wardma,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share the script here as I have same requirement and it is not working even after doing changes in the script include to display RITM instead of Requests&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:23:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2788844#M1071413</guid>
      <dc:creator>Meghana3</dc:creator>
      <dc:date>2024-01-11T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2789473#M1071649</link>
      <description>&lt;P&gt;You'll need to locate the VATopicsHelper script include by navigating to;&amp;nbsp;&lt;BR /&gt;&amp;lt;yourServiceNowInstance&amp;gt;.Service-now.com/now/nav/ui/classic/params/target/sys_script_include_list.do&lt;BR /&gt;Alternatively, you can select the All filter and in the search input, type sys_script_include.list and enter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once within the script include you'll want to comment bracket the default code and on the last just after the end comment bracket you can paste in the attached code.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;You'll want to replace the destination variable with your destination.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:17:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2789473#M1071649</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2024-01-11T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852409#M1091591</link>
      <description>&lt;P&gt;Could you please elaborate on this.&lt;/P&gt;&lt;P&gt;I did tested by updating the VATopicHelper Script Include, and it did not helped, as you mentioned.&lt;BR /&gt;However, i am not able to understand the updates to be made in request_filter.list&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:42:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852409#M1091591</guid>
      <dc:creator>PRS25</dc:creator>
      <dc:date>2024-03-06T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852607#M1091675</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/524049"&gt;@PRS25&lt;/a&gt;&amp;nbsp;In the script include between 213 or 220 possibly yours may be different;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if (tables[i] == 'sc_request') {&lt;BR /&gt;var requestedItem = new GlideRecord('sc_req_item');&amp;nbsp; //Here is where you change sc_request to sc_req_item&lt;BR /&gt;requestedItem.addQuery('request', statusGr.sys_id);&lt;BR /&gt;requestedItem.query();&lt;BR /&gt;if (requestedItem.next()) {&lt;BR /&gt;statusRecordState = requestedItem.stage.getDisplayValue();&lt;BR /&gt;&lt;BR /&gt;In the request_filter.list there are three items that should look very similar to;&amp;nbsp;&lt;BR /&gt;Service Catalog Requested Item Portal&lt;BR /&gt;Service Catalog Request Portal&lt;BR /&gt;Service Catalog Requested Item&lt;BR /&gt;&lt;BR /&gt;In the table field for each item specify, Request Item&lt;BR /&gt;Screenshot attached for reference.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:38:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852607#M1091675</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2024-03-06T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852610#M1091676</link>
      <description>&lt;P&gt;Did you get this to work? If not post below is more specific on where to make the necessary changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:38:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852610#M1091676</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2024-03-06T14:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852657#M1091690</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/508349"&gt;@Wardma&lt;/a&gt;, this worked for me.&lt;/P&gt;&lt;P&gt;Just one additional thought for which I am unsure of - 'Will this modification impact any other configuration on platform that we should be worried about?'&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:10:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852657#M1091690</guid>
      <dc:creator>PRS25</dc:creator>
      <dc:date>2024-03-06T15:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change OOTB VATopicsHelper Script Include to Show sc_req_item instead of sc_request.</title>
      <link>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852671#M1091697</link>
      <description>&lt;P&gt;To my knowledge, no this will not impact any other configuration on the platform. The explanation of the code is that the variable in the code was already assigned or defined. All we are doing here is updating what table its pointing to.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As far as the update to the filter request no. There shouldn't be anything there either that would cause an issue or impact to any configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of this instruction is for the end user view to be visible accurately for the end user and redirecting the end user to the view that they essentially should be looking at for updates on their request item. If the user viewing their request has the fulfiller role then they can alternatively review the items attached to their request item view the fulfiller view, this generally applies to analysts/technicians performing the work that is assigned to them or their groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:19:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-ootb-vatopicshelper-script-include-to-show-sc-req-item/m-p/2852671#M1091697</guid>
      <dc:creator>Wardma</dc:creator>
      <dc:date>2024-03-06T15:19:12Z</dc:date>
    </item>
  </channel>
</rss>

