<?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: HubSpot Data Share - Email Events in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1032410#M76144</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/354457"&gt;@LRoy6&lt;/a&gt;&amp;nbsp;- the message linked to by&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/318167"&gt;@NOlah&lt;/a&gt;&amp;nbsp;has a pretty good explanation, check that out. Also, if you haven't already seen it,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/reports/query-hubspot-data-in-snowflake?_gl=1*1dgf3cy*_gcl_au*OTUzNTU3NTQ4LjE3MjQ2NzU2ODE.*_ga*Mzc0NTEyNzY4LjE3MjQ2NzU2ODI.*_ga_LXTM6CQ0XK*MTcyNDY5NDQ4OS4xLjEuMTcyNDY5NTg5MS42MC4wLjA.#object-and-event-type-queries" target="_blank" rel="noopener noreferrer"&gt;this is the best piece of documentation that shows how to make many types of queries&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe one other clarifying item:&lt;BR /&gt;In your Snowflake query/schema the HubSpot marketing email event data is split into individual tables for each event type and you'll have to query them separately or join multiple event types together in order to get a similar output to the the Email Events API.&lt;BR /&gt;&lt;BR /&gt;Example query/join getting the "Click" events for marketing email:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Select contacts.objectid,contacts.property_email,email_clicks.OCCURREDAT,email_clicks.PROPERTY_HS_CLICK_ORIGINAL_URL, email_clicks.PROPERTY_HS_EMAIL_CAMPAIGN_ID 
from HUB_203693_DB.V2_DAILY.OBJECTS_CONTACTS as contacts
join HUB_203693_DB.V2_DAILY.EVENTS_CLICKED_LINK_IN_EMAIL_V2 as email_clicks 
ON contacts.OBJECTID=email_clicks.objectid&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The event types correspond to what you see in the HubSpot Custom Report builder when using the "Marketing Email Activity" data type&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertainslie_0-1724696824715.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/125613i76CB92D486C469C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertainslie_0-1724696824715.png" alt="robertainslie_0-1724696824715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;These correspond to the following event types, roughly in the 'order' that the events happen for a single send:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_HS_SCHEDULED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_MTA_BOUNCED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_MTA_DELIVERED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_OPENED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_CLICKED_LINK_IN_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_REPLIED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_REPORTED_SPAM_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_UPDATED_EMAIL_SUBSCRIPTION_STATUS_V2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Note: these events are for marketing email sends. There are also email send events for Sequence (1:1 automated emails sent by sales reps)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 19:05:59 GMT</pubDate>
    <dc:creator>robertainslie</dc:creator>
    <dc:date>2024-08-26T19:05:59Z</dc:date>
    <item>
      <title>HubSpot Data Share - Email Events</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1031519#M76102</link>
      <description>&lt;P&gt;I am currently in the process of transitioning my company's ETL framework from using the APIs to using the Snowflake data share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a specific dataset in the data share that can mimic what the Email Events API extracts?: &lt;A href="https://legacydocs.hubspot.com/docs/methods/email/email_events_overview?" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/email/email_events_overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:06:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1031519#M76102</guid>
      <dc:creator>LRoy6</dc:creator>
      <dc:date>2024-08-23T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: HubSpot Data Share - Email Events</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1032291#M76139</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/354457"&gt;@LRoy6&lt;/a&gt;, &lt;BR /&gt;Thank you for your question! I understand you want to transition your email framework to the Snowflake Data Share mentioned &lt;A href="https://ecosystem.hubspot.com/marketplace/apps/snowflake" target="_blank" rel="noopener"&gt;here,&lt;/A&gt;&amp;nbsp;is that correct? I also recommend reviewing our documentation on querying HubSpot data in Snowflake, specifically the &lt;A href="https://knowledge.hubspot.com/reports/query-hubspot-data-in-snowflake#event-queries" target="_blank" rel="noopener"&gt;"Events" data set.&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have also found a similar thread existing &lt;A href="https://community.hubspot.com/t5/128172-RevOps-Discussions/Snowflake-Data-Share-ERD/m-p/898513" target="_blank" rel="noopener"&gt;in our Community here&lt;/A&gt;, where&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1226"&gt;@robertainslie&lt;/a&gt;&amp;nbsp;offered some examples of using Marketing Email data in Snowflake. Robert, do you have any suggestions for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/354457"&gt;@LRoy6&lt;/a&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Additionally, let's consult our experts to see if they have any suggestions for you. &lt;BR /&gt;&lt;BR /&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt; and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66301"&gt;@Bryantworks&lt;/a&gt;,&amp;nbsp;do you happen to have any ideas that could help &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/354457"&gt;@LRoy6&lt;/a&gt;&amp;nbsp;with their goal? Thank you all for contributing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Noemi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:29:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1032291#M76139</guid>
      <dc:creator>NOlah</dc:creator>
      <dc:date>2024-08-26T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: HubSpot Data Share - Email Events</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1032410#M76144</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/354457"&gt;@LRoy6&lt;/a&gt;&amp;nbsp;- the message linked to by&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/318167"&gt;@NOlah&lt;/a&gt;&amp;nbsp;has a pretty good explanation, check that out. Also, if you haven't already seen it,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/reports/query-hubspot-data-in-snowflake?_gl=1*1dgf3cy*_gcl_au*OTUzNTU3NTQ4LjE3MjQ2NzU2ODE.*_ga*Mzc0NTEyNzY4LjE3MjQ2NzU2ODI.*_ga_LXTM6CQ0XK*MTcyNDY5NDQ4OS4xLjEuMTcyNDY5NTg5MS42MC4wLjA.#object-and-event-type-queries" target="_blank" rel="noopener noreferrer"&gt;this is the best piece of documentation that shows how to make many types of queries&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe one other clarifying item:&lt;BR /&gt;In your Snowflake query/schema the HubSpot marketing email event data is split into individual tables for each event type and you'll have to query them separately or join multiple event types together in order to get a similar output to the the Email Events API.&lt;BR /&gt;&lt;BR /&gt;Example query/join getting the "Click" events for marketing email:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Select contacts.objectid,contacts.property_email,email_clicks.OCCURREDAT,email_clicks.PROPERTY_HS_CLICK_ORIGINAL_URL, email_clicks.PROPERTY_HS_EMAIL_CAMPAIGN_ID 
from HUB_203693_DB.V2_DAILY.OBJECTS_CONTACTS as contacts
join HUB_203693_DB.V2_DAILY.EVENTS_CLICKED_LINK_IN_EMAIL_V2 as email_clicks 
ON contacts.OBJECTID=email_clicks.objectid&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The event types correspond to what you see in the HubSpot Custom Report builder when using the "Marketing Email Activity" data type&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertainslie_0-1724696824715.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/125613i76CB92D486C469C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertainslie_0-1724696824715.png" alt="robertainslie_0-1724696824715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;These correspond to the following event types, roughly in the 'order' that the events happen for a single send:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_HS_SCHEDULED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_MTA_BOUNCED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_MTA_DELIVERED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_OPENED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_CLICKED_LINK_IN_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_REPLIED_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_REPORTED_SPAM_EMAIL_V2&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;EVENTS_UPDATED_EMAIL_SUBSCRIPTION_STATUS_V2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Note: these events are for marketing email sends. There are also email send events for Sequence (1:1 automated emails sent by sales reps)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 19:05:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-Data-Share-Email-Events/m-p/1032410#M76144</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2024-08-26T19:05:59Z</dc:date>
    </item>
  </channel>
</rss>

