<?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 New Integration of Custom Events with Custom Objects in Developer Announcements</title>
    <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/954701#M671</link>
    <description>&lt;P&gt;Starting &lt;STRONG&gt;April 4th, 2024&lt;/STRONG&gt;, we are introducing an update to our &lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;Custom Objects API&lt;/A&gt; that enables the creation and association of Custom Events with Custom Objects. This enhancement allows developers to capture unique business actions directly within HubSpot, offering a more tailored data model that aligns closely with specific business needs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hseligson_0-1712237227487.gif" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114494i5740F33E2B38C7A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hseligson_0-1712237227487.gif" alt="hseligson_0-1712237227487.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;What's changing?&lt;/H2&gt;
&lt;P&gt;Developers can now associate Custom Events with Custom Objects through the Custom Events interface within HubSpot or programmatically via the API.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;Creating Custom Events in HubSpot:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Navigate to Reports &amp;gt; Data Management &amp;gt; Custom Events&amp;nbsp;&amp;gt; click the "&lt;A href="https://knowledge.hubspot.com/analytics-tools/create-custom-behavioral-events-with-the-code-wizard" target="_blank" rel="noopener"&gt;create event&lt;/A&gt;" button, and select the type of event you need.&lt;/LI&gt;
&lt;LI&gt;Provide a name for your event, add a description (optional), and select your Custom Object using the "associated object" dropdown.&lt;/LI&gt;
&lt;LI&gt;Define your event properties, save the event, and use the provided event ID in your API calls.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;Creating Custom Events via API:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Utilize the &lt;A href="https://developers.hubspot.com/docs/api/events/custom-events" target="_blank" rel="noopener"&gt;Event Definitions API&lt;/A&gt;&amp;nbsp;to specify your Custom Object as the&lt;FONT face="andale mono,times"&gt; primaryObject&lt;/FONT&gt;&amp;nbsp;and outline the desired event properties.&lt;/LI&gt;
&lt;LI&gt;Use the send &lt;A href="https://developers.hubspot.com/docs/api/analytics/events" target="_blank" rel="noopener"&gt;Event Completions API&lt;/A&gt;&amp;nbsp;to dispatch your event completion. Ensure you include the HubSpot object record ID in your event data to link the event to the correct Custom Object record.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;Immutable Associations:&amp;nbsp;&lt;/H4&gt;
&lt;P&gt;This association cannot be modified once an event is ingested and associated with a Custom Object record.&lt;/P&gt;
&lt;P&gt;Custom Events connected to Custom Objects empower developers to construct a highly customized data model within HubSpot. This capability captures business-specific actions and their direct association with relevant Custom Objects, enhancing data management and utilization in tailored applications and workflows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Questions or comments?&lt;/STRONG&gt;&amp;nbsp;Join other HubSpot developers in our peer-to-peer community below to discuss feedback, concerns, and best practices.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 13:52:44 GMT</pubDate>
    <dc:creator>hseligson</dc:creator>
    <dc:date>2024-04-19T13:52:44Z</dc:date>
    <item>
      <title>New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/954701#M671</link>
      <description>&lt;P&gt;Starting &lt;STRONG&gt;April 4th, 2024&lt;/STRONG&gt;, we are introducing an update to our &lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;Custom Objects API&lt;/A&gt; that enables the creation and association of Custom Events with Custom Objects. This enhancement allows developers to capture unique business actions directly within HubSpot, offering a more tailored data model that aligns closely with specific business needs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hseligson_0-1712237227487.gif" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114494i5740F33E2B38C7A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hseligson_0-1712237227487.gif" alt="hseligson_0-1712237227487.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;What's changing?&lt;/H2&gt;
&lt;P&gt;Developers can now associate Custom Events with Custom Objects through the Custom Events interface within HubSpot or programmatically via the API.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;Creating Custom Events in HubSpot:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Navigate to Reports &amp;gt; Data Management &amp;gt; Custom Events&amp;nbsp;&amp;gt; click the "&lt;A href="https://knowledge.hubspot.com/analytics-tools/create-custom-behavioral-events-with-the-code-wizard" target="_blank" rel="noopener"&gt;create event&lt;/A&gt;" button, and select the type of event you need.&lt;/LI&gt;
&lt;LI&gt;Provide a name for your event, add a description (optional), and select your Custom Object using the "associated object" dropdown.&lt;/LI&gt;
&lt;LI&gt;Define your event properties, save the event, and use the provided event ID in your API calls.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;Creating Custom Events via API:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Utilize the &lt;A href="https://developers.hubspot.com/docs/api/events/custom-events" target="_blank" rel="noopener"&gt;Event Definitions API&lt;/A&gt;&amp;nbsp;to specify your Custom Object as the&lt;FONT face="andale mono,times"&gt; primaryObject&lt;/FONT&gt;&amp;nbsp;and outline the desired event properties.&lt;/LI&gt;
&lt;LI&gt;Use the send &lt;A href="https://developers.hubspot.com/docs/api/analytics/events" target="_blank" rel="noopener"&gt;Event Completions API&lt;/A&gt;&amp;nbsp;to dispatch your event completion. Ensure you include the HubSpot object record ID in your event data to link the event to the correct Custom Object record.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;Immutable Associations:&amp;nbsp;&lt;/H4&gt;
&lt;P&gt;This association cannot be modified once an event is ingested and associated with a Custom Object record.&lt;/P&gt;
&lt;P&gt;Custom Events connected to Custom Objects empower developers to construct a highly customized data model within HubSpot. This capability captures business-specific actions and their direct association with relevant Custom Objects, enhancing data management and utilization in tailored applications and workflows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Questions or comments?&lt;/STRONG&gt;&amp;nbsp;Join other HubSpot developers in our peer-to-peer community below to discuss feedback, concerns, and best practices.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:52:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/954701#M671</guid>
      <dc:creator>hseligson</dc:creator>
      <dc:date>2024-04-19T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963098#M701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/420219"&gt;@hseligson&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;As an app developer, I'm really excited for this update &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;However, I'm having trouble creating a custom event definition for a custom object. I can't see where I'm going wrong and the API error response I'm receiving is not particularly helpful. Can you (or anyone in the community!) see where I'm going wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;STRONG&gt;POST &lt;/STRONG&gt;&lt;SPAN class="" data-testid="resolvedVariable"&gt;https://api.hubapi.com/events/v3/event-definitions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "name": "example_name",
    "description": "Example description",
    "label": "Example label",
    "primaryObject": "CUSTOMOBJECT", // my custom object's "name"
    "propertyDefinitions": [
        {
            "name": "example_date_one",
            "label": "Example Date 1",
            "type": "datetime",
            "description": "Example description"
        },
        {
            "name": "example_date_two",
            "label": "Example Date 2",
            "type": "datetime",
            "description": "Example description"
        },
        {
            "name": "example_number_one",
            "label": "Example Number 1",
            "type": "number",
            "description": "Example description"
        },
        {
            "name": "example_number_two",
            "label": "Example Number 2",
            "type": "number",
            "description": "Example description"
        },
        {
            "name": "example_number_three",
            "label": "Example Number 3",
            "type": "number",
            "description": "Example description"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error response:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{ "status": "error", "message": "internal error", "correlationId": "xxx-yyy" }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've triple-checked my authentication as valid and having the correct scopes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthermore, my request works if I use a standard object type (e.g. CONTACT) instead of my custom object type name. I also tried using my custom object's fully qualified name and object type ID, with no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help you could offer would be greatly appreciated &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;&lt;EM&gt;&lt;FONT color="#999999"&gt;On a side note, I noticed there are a few broken links in the announcement post -- looks like links have been directed to the "community" subdomain instead of the "developers" subdomain for a few of those API doc links.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 23:11:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963098#M701</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-04-18T23:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963494#M703</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; thank you for reaching out and sharing your feedback!&lt;BR /&gt;I also appreciate the note about the links - these have been updated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hmm, you've already tried what I would suggest:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;I also tried using my custom object's fully qualified name and object type ID, with no luck.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;I'm going to reach out internally and see if our tech lead can provide some insight or look into this. I will follow up with you as soon as I'm able to get some feedback. Apologies for the inconvenience!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:10:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963494#M703</guid>
      <dc:creator>hseligson</dc:creator>
      <dc:date>2024-04-19T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963838#M704</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/420219"&gt;@hseligson&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 01:09:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/963838#M704</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-04-20T01:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/964693#M709</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;- Great news! We have successfully identified the issue that you reported to us and we truly appreciate you bringing it to our attention. This issue could have potentially affected other customers as well if it had not already done so.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem was caused by the character length of the name, which we had set to a maximum of 10 characters. We are now working on changing this to at least 12 characters. We are submitting a PR to rectify this issue as soon as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the change has been implemented, I will follow up with you to confirm that the issue has been resolved. Thank you for your patience and understanding!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 18:02:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/964693#M709</guid>
      <dc:creator>hseligson</dc:creator>
      <dc:date>2024-04-22T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/964920#M710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/420219"&gt;@hseligson&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;Thanks for the update. The custom object name I was testing with only had 9 characters &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp;Regardless, looking forward to testing again once the issue has been resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 00:53:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/964920#M710</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-04-23T00:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/965256#M711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;- Apologies, the issue stemmed from the custom object ID exceeding the maximum character limit set in our database, not the custom object name. Specifically, the custom object ID you tried to create was longer than the 10-character limit we originally designed for storing these IDs.&lt;BR /&gt;To address this, we updated our database schema to support object IDs of up to 20 characters, ensuring compatibility with larger IDs.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I'm currently unable to test this with a similarly high ID as we encountered with your entry, since these are generated based on system events and are not manually controllable. However, w&lt;/SPAN&gt;&lt;SPAN&gt;e expect this change will resolve the issue.&amp;nbsp;Should you have any questions or require further assistance, please don't hesitate to reach out!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:46:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/965256#M711</guid>
      <dc:creator>hseligson</dc:creator>
      <dc:date>2024-04-23T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: New Integration of Custom Events with Custom Objects</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/965574#M712</link>
      <description>&lt;P&gt;That seems to have done the trick. Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/420219"&gt;@hseligson&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 21:47:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/New-Integration-of-Custom-Events-with-Custom-Objects/m-p/965574#M712</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-04-23T21:47:37Z</dc:date>
    </item>
  </channel>
</rss>

