<?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 closing all the metric records in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510741#M555894</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am having a requirement in the CSM module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to capture all the Metric instances when the case state changed from Active to False. So, I have created a Async BR with all the Metric Definitions stored in the property. It is updating all the records sometimes and leaving few records in the very next attempt. The BR wasn't able to update all Metric Instances and leaving the very recently created when the state changes to active to false. I tried Script Include calling from the BR but failed abruptly. I have tried Scheduled Job which will trigger via After BR and it is working totally fine as expected. But my architect isn't allowing me to go through this approach. I have checked all the OOTB things but no luck. It would be great if there is any other way to proceed further or any enhancements are required to fix this issue. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2026 06:58:51 GMT</pubDate>
    <dc:creator>Imran4</dc:creator>
    <dc:date>2026-03-19T06:58:51Z</dc:date>
    <item>
      <title>closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510741#M555894</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am having a requirement in the CSM module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to capture all the Metric instances when the case state changed from Active to False. So, I have created a Async BR with all the Metric Definitions stored in the property. It is updating all the records sometimes and leaving few records in the very next attempt. The BR wasn't able to update all Metric Instances and leaving the very recently created when the state changes to active to false. I tried Script Include calling from the BR but failed abruptly. I have tried Scheduled Job which will trigger via After BR and it is working totally fine as expected. But my architect isn't allowing me to go through this approach. I have checked all the OOTB things but no luck. It would be great if there is any other way to proceed further or any enhancements are required to fix this issue. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 06:58:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510741#M555894</guid>
      <dc:creator>Imran4</dc:creator>
      <dc:date>2026-03-19T06:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510770#M555895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/78086"&gt;@Imran4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;1. Enable Metrics for Case Tables&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Go to:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;System Definition → Tables&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Open the table record&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;sn_customerservice_case (Customer Case)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;sn_customerservice_technical_case (Technical Case)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check the field:&lt;/STRONG&gt;&lt;BR /&gt;Extensible or Metric tracking (depends on version — in Yokohama it’s “Metric tracking”).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Enable it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Tick&lt;SPAN&gt;&amp;nbsp;on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Metric tracking enabled&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Save the record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;This flag adds the hidden metric infrastructure needed for that table.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Reload Metric Definition form&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Now when you go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Metric Definitions → New&lt;/STRONG&gt;,&lt;BR /&gt;you should be able to select those tables from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Table&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dropdown.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once the definition(s) are created, you can report on the captured data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Mar 2026 08:00:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510770#M555895</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-19T08:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510812#M555896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Sorry, it didn't solve my issue. I am not able to find the table even after making it extensible. I would like to hear response from you. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 10:07:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510812#M555896</guid>
      <dc:creator>Imran4</dc:creator>
      <dc:date>2026-03-19T10:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510817#M555897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/78086"&gt;@Imran4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Metrics is already configured "&lt;EM&gt;In the base system, metrics are configured to work on the&lt;STRONG&gt; task table&lt;/STRONG&gt; only."&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note; for non-task table , it needs to configure using BR etc. Check this &lt;A href="https://www.servicenow.com/community/platform-analytics-articles/metrics-on-non-task-tables/ta-p/2308846" target="_self"&gt;post&lt;/A&gt;.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sn_customerservice_case table is extended from task table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In Zurich PDI, I&amp;nbsp; added &lt;STRONG&gt;Metrics&lt;/STRONG&gt; Related list in case (sn_customerservice_case) record and&amp;nbsp; Added a Case record and closed it.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In the Case -&amp;gt;Metrics list it is showing data correctly. Check this screen shot.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-19 161358.jpg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/506696i866D595C2F56BD10/image-size/large?v=v2&amp;amp;px=999" alt="Screenshot 2026-03-19 161358.jpg" title="Screenshot 2026-03-19 161358.jpg" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 10:46:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510817#M555897</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-19T10:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510845#M555898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Case table is extended from the Task table in my scenario. Creating a BR is working fine for some time and failing abruptly in other cases. So, I am expecting a way to fix this issue. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 11:55:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510845#M555898</guid>
      <dc:creator>Imran4</dc:creator>
      <dc:date>2026-03-19T11:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510849#M555899</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/78086"&gt;@Imran4&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Certainly! Using&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Flow Designer&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in ServiceNow is a great way to handle your requirement for updating Metric instances when the Case state changes from&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Active&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;False.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 12:03:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510849#M555899</guid>
      <dc:creator>Nilesh Pol</dc:creator>
      <dc:date>2026-03-19T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510852#M555900</link>
      <description>&lt;P&gt;You Have to analysis the when BR is getting failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share your BR details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's Not working properly -&amp;gt; you can move to flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 12:08:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510852#M555900</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-19T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510858#M555901</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please check my Async Update BR,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(function executeRule(current, previous /*null when async*/ ) {

    var metricProperty = gs.getProperty('AllMetricPropertiesWereIncludedHERE').split(',');
    var grstateMetrics = new GlideRecord('metric_instance');
    grstateMetrics.addQuery('id', current.sys_id);
    //grstateMetrics.addQuery('calculation_complete',false);
    grstateMetrics.addQuery('definition', 'IN', metricProperty);
    grstateMetrics.query();
    while (grstateMetrics.next()) {
        if (grstateMetrics.calculation_complete == false) {
            gs.sleep(10000);
            var startTime = grstateMetrics.start.getValue();
            var endTime = current.getValue('closed_at') || current.getValue('sys_updated_on') || new GlideDateTime().getValue();
            grstateMetrics.end = endTime;
            grstateMetrics.duration = gs.dateDiff(startTime, endTime, false);
            grstateMetrics.calculation_complete = true;
            grstateMetrics.update();
        }
    }

})(current, previous);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Mar 2026 12:14:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510858#M555901</guid>
      <dc:creator>Imran4</dc:creator>
      <dc:date>2026-03-19T12:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510903#M555902</link>
      <description>&lt;P&gt;BR trigger condition also share please&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:10:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510903#M555902</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-19T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: closing all the metric records</title>
      <link>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510908#M555903</link>
      <description>&lt;DIV class=""&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;, Please find the attached Screenshot. Thank you.&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-19 184419.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/506721i562DC313B5BE59DB/image-size/large?v=v2&amp;amp;px=999" alt="Screenshot 2026-03-19 184419.png" title="Screenshot 2026-03-19 184419.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:16:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/closing-all-the-metric-records/m-p/3510908#M555903</guid>
      <dc:creator>Imran4</dc:creator>
      <dc:date>2026-03-19T13:16:07Z</dc:date>
    </item>
  </channel>
</rss>

