<?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: Company next activity date format in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/836752#M66595</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563574"&gt;@Arunesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand, I am seeing the same. See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Without activity created&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I can see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" is null.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-16T14:33:56.468Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": null
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-16T14:33:56.468Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) When activity created&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" has timestamp.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-18T17:18:30.546Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": "2023-08-23T07:00:00Z"
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-18T17:18:30.546Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3) When activity deleted&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" is an empty string.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-18T17:19:20.295Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": ""
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-18T17:19:20.295Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do still think this is working as designed and I'd just recommend checking the response for the presence of a falsy value i.e something that will evaluate to false (undefined, null, NaN, 0, "").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 17:23:01 GMT</pubDate>
    <dc:creator>coldrickjack</dc:creator>
    <dc:date>2023-08-18T17:23:01Z</dc:date>
    <item>
      <title>Company next activity date format</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/835844#M66539</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I got the company next activity date from API. I thought the data type is datetime or date, but i got empty string for few. Is it expected? Can we get null istead of "" this empty string.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 08:26:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/835844#M66539</guid>
      <dc:creator>Arunesh</dc:creator>
      <dc:date>2023-08-17T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Company next activity date format</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/835897#M66541</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563574"&gt;@Arunesh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm unable to replicate what you are seeing. For instance when I retreive a particular company from the CRM using &lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank" rel="noopener"&gt;GET /crm/v3/objects/company/{companyId}&lt;/A&gt; a null value is returned for the "Next Activity Date" property. See my request below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
RESPONSE
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-16T14:33:56.468Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": null
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-16T14:33:56.468Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am retrieveing "notes_next_activity_date" which is defined as "Date of the next upcoming scheduled sales activity for this company record.". See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"name": "notes_next_activity_date",
"label": "Next Activity Date",
"type": "datetime",
"fieldType": "date",
"description": "Date of the next upcoming scheduled sales activity for this company record.",
"groupName": "company_activity"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the UI when I check the company I see this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-17 at 11.19.26.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97092i1AF5E4FCDB40E16A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-17 at 11.19.26.png" alt="Screenshot 2023-08-17 at 11.19.26.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Questions for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you using the endpoint above?&lt;/LI&gt;
&lt;LI&gt;Which property are you trying to retrieve - is it the "notes_next_activity_date" property?&lt;/LI&gt;
&lt;LI&gt;Can you share any more information about your request&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 10:20:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/835897#M66541</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-17T10:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Company next activity date format</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/836731#M66590</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5724"&gt;@jackcoldrick&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I got the empty string when the activity was deleted. Say I create an activity for an upcoming follow up and delete that. While retrieving the data for next activity I get the empty string&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arunesh_0-1692377577856.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97211iEADF90EBE5817242/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Arunesh_0-1692377577856.png" alt="Arunesh_0-1692377577856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 16:53:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/836731#M66590</guid>
      <dc:creator>Arunesh</dc:creator>
      <dc:date>2023-08-18T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Company next activity date format</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/836752#M66595</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563574"&gt;@Arunesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand, I am seeing the same. See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Without activity created&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I can see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" is null.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-16T14:33:56.468Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": null
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-16T14:33:56.468Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) When activity created&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" has timestamp.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-18T17:18:30.546Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": "2023-08-23T07:00:00Z"
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-18T17:18:30.546Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3) When activity deleted&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I see "&lt;EM&gt;notes_next_activity_date&lt;/EM&gt;" is an empty string.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/company/8200747722?properties=notes_next_activity_date
{
    "id": "8200747722",
    "properties": {
        "createdate": "2023-08-07T08:12:56.043Z",
        "hs_lastmodifieddate": "2023-08-18T17:19:20.295Z",
        "hs_object_id": "8200747722",
        "notes_next_activity_date": ""
    },
    "createdAt": "2023-08-07T08:12:56.043Z",
    "updatedAt": "2023-08-18T17:19:20.295Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do still think this is working as designed and I'd just recommend checking the response for the presence of a falsy value i.e something that will evaluate to false (undefined, null, NaN, 0, "").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 17:23:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Company-next-activity-date-format/m-p/836752#M66595</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-18T17:23:01Z</dc:date>
    </item>
  </channel>
</rss>

