<?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 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/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>
    <dc:creator>kcwong</dc:creator>
    <dc:date>2026-05-27T01:43:13Z</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>
  </channel>
</rss>

