<?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>topic Re: Filtering companies by last activity date in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/924328#M71141</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/705529"&gt;@fsad&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using the &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;CRM Search API&lt;/A&gt; for this request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, imagine you want to identify Companies that have a "Last Activity Date" of on or after 1 January 2024. Your HubSpot CRM Search API request might look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://api.hubapi.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com&lt;/A&gt;&lt;SPAN&gt;/crm/v3/objects/&lt;STRONG&gt;COMPANY&lt;/STRONG&gt;/search&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Content-Type:&amp;nbsp;application/json&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Accept:&amp;nbsp;application/json&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Authorization: Bearer {YOUR_ACCESS_TOKEN}&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Body (JSON)&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "limit": 100,
    "properties": [
        "notes_last_updated"
    ],
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "notes_last_updated",
                    "operator": "GTE",
                    "value": "2024-01-01"
                }
            ]
        }
    ]
}&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;Please note that the property "Last Activity Date" has an internal name (used when interacting with HubSpot APIs) of "notes_last_updated". This property's description, as supplied by HubSpot, is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;"The last time a call, chat conversation, LinkedIn message, postal mail, meeting, note, sales email, SMS, or WhatsApp message was logged for a company. This is set automatically by HubSpot based on user actions in the company record."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this proves useful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 02:59:10 GMT</pubDate>
    <dc:creator>zach_threadint</dc:creator>
    <dc:date>2024-03-05T02:59:10Z</dc:date>
    <item>
      <title>Filtering companies by last activity date</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/923973#M71133</link>
      <description>&lt;P&gt;I'm trying to reach the API endpoint, filtering by the "last activity" field, and I'm not receiving a response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/companies?limit=20&amp;amp;properties=lastActivity" target="_new"&gt;https://api.hubapi.com/crm/v3/objects/companies?limit=20&amp;amp;properties=lastActivity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the first time I'm attempting to access the HubSpot API. Any suggestions and/or assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 13:35:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/923973#M71133</guid>
      <dc:creator>fsad</dc:creator>
      <dc:date>2024-02-16T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering companies by last activity date</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/923987#M71134</link>
      <description>&lt;P&gt;If you really want to dive in you might consider taking a certification course that teaches you all about using the APIs:&amp;nbsp;&lt;A href="https://academy.hubspot.com/" target="_blank"&gt;https://academy.hubspot.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsmarion_0-1708091127035.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/109797i7463EC1BA8D35B40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsmarion_0-1708091127035.png" alt="dsmarion_0-1708091127035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 13:46:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/923987#M71134</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-02-16T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering companies by last activity date</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/924328#M71141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/705529"&gt;@fsad&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using the &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;CRM Search API&lt;/A&gt; for this request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, imagine you want to identify Companies that have a "Last Activity Date" of on or after 1 January 2024. Your HubSpot CRM Search API request might look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://api.hubapi.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com&lt;/A&gt;&lt;SPAN&gt;/crm/v3/objects/&lt;STRONG&gt;COMPANY&lt;/STRONG&gt;/search&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Content-Type:&amp;nbsp;application/json&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Accept:&amp;nbsp;application/json&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Authorization: Bearer {YOUR_ACCESS_TOKEN}&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Body (JSON)&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "limit": 100,
    "properties": [
        "notes_last_updated"
    ],
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "notes_last_updated",
                    "operator": "GTE",
                    "value": "2024-01-01"
                }
            ]
        }
    ]
}&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;Please note that the property "Last Activity Date" has an internal name (used when interacting with HubSpot APIs) of "notes_last_updated". This property's description, as supplied by HubSpot, is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;"The last time a call, chat conversation, LinkedIn message, postal mail, meeting, note, sales email, SMS, or WhatsApp message was logged for a company. This is set automatically by HubSpot based on user actions in the company record."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this proves useful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 02:59:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-companies-by-last-activity-date/m-p/924328#M71141</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-03-05T02:59:10Z</dc:date>
    </item>
  </channel>
</rss>

