<?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: Querying Activities using REST API in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549509#M7005</link>
    <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/1036683"&gt;@kcwong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what's your business requirement?&lt;/P&gt;
&lt;P&gt;you should not use OOTB Table API to get details as it exposes all the fields&lt;/P&gt;
&lt;P&gt;Instead you can use scripted REST API&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 05:32:28 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2026-05-27T05:32:28Z</dc:date>
    <item>
      <title>Querying Activities using REST API</title>
      <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549427#M7003</link>
      <description>&lt;P&gt;I'm trying to use REST API to pull data from ServiceNow, particularly the data shown in Activities section for the incidents/changes/requests I have. I'm using the table API (/api/now/v1/table/:table_name?sysparm_query=xxx) to find and retrieve data.&lt;/P&gt;&lt;P&gt;So far I've identified:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;sys_journal_field. This contains work notes/comments/approval history.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;element = comments|work_notes|approval_history, element_id=master record's sys_id&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;sys_audit. This contains the audit trace.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;tablename, documentkey, newvalue, oldvalue are the key attributes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sys_email. This contains the email received/sent entries.&amp;nbsp;target_table points to the master record table, while instance.value in the JSON points to the master record.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Questions:&amp;nbsp;&lt;BR /&gt;1. Are there more types of activities I do not know about? Where can I find documentation for them?&lt;BR /&gt;2. How do you use sysparm_query to search a nested JSON value, like for sys_email's instance.value?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. How is email stored in sys_email if there are attachments? Because of question 2, I am unable to locate an example in my ServiceNow instance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 May 2026 01:43:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549427#M7003</guid>
      <dc:creator>kcwong</dc:creator>
      <dc:date>2026-05-27T01:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Activities using REST API</title>
      <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549455#M7004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/1036683"&gt;@kcwong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I have been working on e-bonding projects, I created scripted Rest API and using script retrieved the&amp;nbsp; Journal field values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try with this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/developer-forum/scripted-rest-api-to-retrieve-work-notes-of-an-incident-for/td-p/1593888" target="_blank"&gt;https://www.servicenow.com/community/developer-forum/scripted-rest-api-to-retrieve-work-notes-of-an-incident-for/td-p/1593888&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/docs/r/api-reference/web-services/retrieving-journal-entries.html" target="_self"&gt;Retrieve journal entries using direct web services&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 03:19:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549455#M7004</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-05-27T03:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Activities using REST API</title>
      <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549509#M7005</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/1036683"&gt;@kcwong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what's your business requirement?&lt;/P&gt;
&lt;P&gt;you should not use OOTB Table API to get details as it exposes all the fields&lt;/P&gt;
&lt;P&gt;Instead you can use scripted REST API&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 05:32:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549509#M7005</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-05-27T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Activities using REST API</title>
      <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549523#M7006</link>
      <description>&lt;P&gt;Migrating data out of ServiceNow. The records and attachments are done, just need to get all the available data displayed in the Activities section.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 05:48:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549523#M7006</guid>
      <dc:creator>kcwong</dc:creator>
      <dc:date>2026-05-27T05:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Activities using REST API</title>
      <link>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549532#M7007</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/1036683"&gt;@kcwong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes mostly these tables are involved&lt;/P&gt;
&lt;P&gt;sys_journal_field&lt;/P&gt;
&lt;P&gt;sys_audit&lt;/P&gt;
&lt;P&gt;sys_email&lt;/P&gt;
&lt;P&gt;I will recommend using Scripted REST API and then use GlideRecord to return the data in whatever format 3rd party wants&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 06:07:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/querying-activities-using-rest-api/m-p/3549532#M7007</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-05-27T06:07:17Z</dc:date>
    </item>
  </channel>
</rss>

