<?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 Field Changes in Activity Stream in Portal in Employee Slate and Employee Center forum</title>
    <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253275#M13121</link>
    <description>&lt;P&gt;Hi Team, is it possible to show the Field Changes in the Activity Stream of Portal?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debendudas_0-1746195512946.jpeg" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/439448iAD2F3ED6CE3E3E96/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="debendudas_0-1746195512946.jpeg" alt="debendudas_0-1746195512946.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2025 14:22:51 GMT</pubDate>
    <dc:creator>debendudas</dc:creator>
    <dc:date>2025-05-02T14:22:51Z</dc:date>
    <item>
      <title>Field Changes in Activity Stream in Portal</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253275#M13121</link>
      <description>&lt;P&gt;Hi Team, is it possible to show the Field Changes in the Activity Stream of Portal?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debendudas_0-1746195512946.jpeg" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/439448iAD2F3ED6CE3E3E96/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="debendudas_0-1746195512946.jpeg" alt="debendudas_0-1746195512946.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:22:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253275#M13121</guid>
      <dc:creator>debendudas</dc:creator>
      <dc:date>2025-05-02T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Changes in Activity Stream in Portal</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253283#M13122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/482989"&gt;@debendudas&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;ServiceNow doesn’t provide a default option to show field changes in the Activity Stream, you can customize this functionality using widgets and the sys_audit table. This method allows you to display field changes in the Activity Stream or another relevant part of your portal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope my answer helps you to resolve your issue, if yes please mark my answer helpful and correct.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:33:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253283#M13122</guid>
      <dc:creator>Rajesh Chopade1</dc:creator>
      <dc:date>2025-05-02T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Changes in Activity Stream in Portal</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253284#M13123</link>
      <description>&lt;P class=""&gt;Hi!&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/482989"&gt;@debendudas&lt;/a&gt;,&amp;nbsp; By default, &lt;STRONG&gt;Field Changes&lt;/STRONG&gt; (also known as &lt;EM&gt;audit records&lt;/EM&gt;) in ServiceNow &lt;STRONG&gt;are not shown on the portal's activity stream&lt;/STRONG&gt; (e.g., in Service Portal or Employee Center). Only &lt;STRONG&gt;Comments&lt;/STRONG&gt; and &lt;STRONG&gt;Work Notes&lt;/STRONG&gt; are typically included.&lt;/P&gt;&lt;P class=""&gt;However, &lt;STRONG&gt;yes—it &lt;EM&gt;is&lt;/EM&gt; possible&lt;/STRONG&gt; to show field changes in the portal activity stream by customizing the widget logic.&lt;/P&gt;&lt;H3&gt;Here’s how you can do it:&lt;/H3&gt;&lt;H4&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Option 1: Customize the Ticket Conversations or Activity Stream widget&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;Navigate to the &lt;STRONG&gt;Service Portal &amp;gt; Widgets&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Look for the widget used for showing activities (e.g., Ticket Conversations, Activity Stream, or a custom one).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Edit the widget's server script to &lt;STRONG&gt;include sys_audit records&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Merge the audit records into the same data array as comments/work notes with proper formatting.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Option 2: Create a custom script in a widget or portal page&lt;/H4&gt;&lt;P class=""&gt;Fetch and display data from the sys_audit table filtered by:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;documentkey = the record sys_id&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Fields of interest (like state, priority, assigned_to, etc.)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Format the display for readability and show it alongside comments/work notes.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Key Table Info:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Table: sys_audit&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Fields: fieldname, oldvalue, newvalue, sys_created_on, sys_created_by, documentkey&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:34:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253284#M13123</guid>
      <dc:creator>Gaurav Rathaur</dc:creator>
      <dc:date>2025-05-02T14:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field Changes in Activity Stream in Portal</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253285#M13124</link>
      <description>&lt;P&gt;Thanks for your replying Rajesh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any sample script or example?&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:35:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253285#M13124</guid>
      <dc:creator>debendudas</dc:creator>
      <dc:date>2025-05-02T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field Changes in Activity Stream in Portal</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253306#M13125</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/482989"&gt;@debendudas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create new 'widget' and use bellow server script &amp;amp; client script:&lt;/P&gt;&lt;P&gt;server script :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var gr = new GlideRecord('sys_audit');
gr.addQuery('document_key', current.sys_id);  // For a specific record
gr.orderByDesc('sys_created_on');  // Sort by most recent changes
gr.query();

var changes = [];
while (gr.next()) {
    var change = {
        fieldName: gr.fieldname,
        oldValue: gr.old_value,
        newValue: gr.new_value,
        timestamp: gr.sys_created_on
    };
    changes.push(change);
}

data.fieldChanges = changes;  // Pass the changes to the widget client&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;client script code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Display the field changes in the widget template
data.fieldChanges.forEach(function(change) {
    var changeText = change.fieldName + ' changed from ' + change.oldValue + ' to ' + change.newValue;
    // Append changeText to your HTML or Activity Stream view
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:52:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/field-changes-in-activity-stream-in-portal/m-p/3253306#M13125</guid>
      <dc:creator>Rajesh Chopade1</dc:creator>
      <dc:date>2025-05-02T14:52:50Z</dc:date>
    </item>
  </channel>
</rss>

