<?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 &amp;amp; Zapier - Meeting Engagement Showing Wrong Duration in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277394#M25322</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/68987"&gt;@ChrisEldridge&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing that information. I'll close the loop with Steve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_self"&gt;created&lt;/A&gt; a few &lt;CODE&gt;MEETING&lt;/CODE&gt; engagements in my own account and the&amp;nbsp;"Duration" correctly reflected the difference between the&amp;nbsp;&lt;CODE&gt;startTime&lt;/CODE&gt; and &lt;CODE&gt;endTime&lt;/CODE&gt; I defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this payload:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "engagement": {
        "active": true,
        "ownerId": 18624860,
        "type": "MEETING",
        "timestamp": 1561559798348
    },
    "associations": {
        "contactIds": [100001],
        "companyIds": [ ],
        "dealIds": [ ],
        "ownerIds": [ ]
    },
"metadata": {
    "body": "I had a 3:30 hour meeting with Sam.",
    "startTime": 1561554000000,
    "endTime": 1561566600000,
    "title": "My 3.5 Hour Meeting"
  }
}&lt;/PRE&gt;
&lt;P&gt;renders as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="Screen Shot 2019-06-26 at 10.46.42 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/18085i06456F4D1FFC3A4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-06-26 at 10.46.42 AM.png" alt="Screen Shot 2019-06-26 at 10.46.42 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;While the meeting with&amp;nbsp;&lt;A href="https://app.hubspot.com/contacts/3925488/contact/33560301" target="_self"&gt;this contact&lt;/A&gt;&amp;nbsp;has UNIX timestamps for&amp;nbsp;&lt;CODE&gt;startTime&lt;/CODE&gt; and &lt;CODE&gt;endTime&lt;/CODE&gt; that come out to 30 minutes apart (&lt;CODE&gt;1562072400&lt;/CODE&gt; and&amp;nbsp;&lt;CODE&gt;1562074200&lt;/CODE&gt;, respectively), they are in&amp;nbsp;&lt;EM&gt;seconds&lt;/EM&gt; rather than&amp;nbsp;&lt;EM&gt;milliseconds&lt;/EM&gt;. &lt;A href="https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis" target="_self"&gt;HubSpot's APIs accept&amp;nbsp;&lt;EM&gt;millisecond&lt;/EM&gt; timestamps&lt;/A&gt;, so I'm a bit surprised the engagement was accepted and placed on the timeline in 2019 instead of 1970.&lt;BR /&gt;&lt;BR /&gt;That abnormality aside, I suspect that HubSpot had trouble calculating the difference between these&amp;nbsp;&lt;EM&gt;second&lt;/EM&gt; timestamps and&amp;nbsp;automatically set the "Duration" to "15 minutes" because that is the shortest default duration for meetings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you seeing this behavior across all meeting engagements? Could you provide additional examples?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If all&amp;nbsp;&lt;CODE&gt;MEETING&lt;/CODE&gt; engagements are coming through with&amp;nbsp;&lt;EM&gt;second&lt;/EM&gt; timestamps, we'll likely have to work with Zapier to get&amp;nbsp;&lt;EM&gt;millisecond&lt;/EM&gt; timestamps sent over.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 14:59:51 GMT</pubDate>
    <dc:creator>IsaacTakushi</dc:creator>
    <dc:date>2019-06-26T14:59:51Z</dc:date>
    <item>
      <title>Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277081#M25272</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, we are using your API via Zapier to create Meeting Engagements on contacts whenever someone books a call through Calendly which is what we use for meeting schedules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The times are correct on the contact and the engagement, but the "Duration" is incorrect.&amp;nbsp; They are all showing as 15 Minutes instead of what should be 30 minutes (1:00-1:30)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the meeting on the contact record:&amp;nbsp;&lt;A href="https://cl.ly/2be1b3b03b57" target="_blank"&gt;https://cl.ly/2be1b3b03b57&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the meeting on Google Calendar:&amp;nbsp;&lt;A href="https://cl.ly/3c21347615e1" target="_blank"&gt;https://cl.ly/3c21347615e1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the jQuery I got from Hubspot support which shows the two EPOC timestamps in the meta data reflecting 1:00-1:30.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://cdnp.hubspot.net/hubfs/53/2019-06-25%2015_40_53-3925488%20engagements%20for%20contact%2033560301.png?Expires=1561477270&amp;amp;Signature=XYgOzSlHNfS2ylXtsRkO3m5ioIMsBrehCOQk60r8m0mqtA8zAdD2Q0RmwR4IwRbHzuUExZp8d3vWXlVr47cJxsnEyy~hpVBOneVorxwIiyYot53Y6N1wg5WMkrNK0Slc-lN60wGal6wIa~tg3VTf-svxWdRS6mHw8USG8EkdRQNmc6LOTHJ0mgJh87xdS2tWVzu77ac8DLdqBIcWRYPhQGmex7zxZW1vic6gzVEdFV8Ln1vnJxVMfwEdsimRK8LVoEI4blq6rpwMPp4cQxfo6PKV83NmjWFcJxaBJPRxzy7sNpBusGtufBllkB8rCR8Tvh1QRIETMM~fcRzGt8ry~w__&amp;amp;Key-Pair-Id=APKAJDNICOKANPHVCSBQ" target="_blank"&gt;https://cdnp.hubspot.net/hubfs/53/2019-06-25%2015_40_53-3925488%20engagements%20for%20contact%2033560301.png?Expires=1561477270&amp;amp;Signature=XYgOzSlHNfS2ylXtsRkO3m5ioIMsBrehCOQk60r8m0mqtA8zAdD2Q0RmwR4IwRbHzuUExZp8d3vWXlVr47cJxsnEyy~hpVBOneVorxwIiyYot53Y6N1wg5WMkrNK0Slc-lN60wGal6wIa~tg3VTf-svxWdRS6mHw8USG8EkdRQNmc6LOTHJ0mgJh87xdS2tWVzu77ac8DLdqBIcWRYPhQGmex7zxZW1vic6gzVEdFV8Ln1vnJxVMfwEdsimRK8LVoEI4blq6rpwMPp4cQxfo6PKV83NmjWFcJxaBJPRxzy7sNpBusGtufBllkB8rCR8Tvh1QRIETMM~fcRzGt8ry~w__&amp;amp;Key-Pair-Id=APKAJDNICOKANPHVCSBQ&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zapier only asks for the start time and the end time.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:03:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277081#M25272</guid>
      <dc:creator>ChrisEldridge</dc:creator>
      <dc:date>2019-06-25T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277328#M25313</link>
      <description>&lt;P&gt;Welcome,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/68987"&gt;@ChrisEldridge&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy to help, however I'm getting a &lt;CODE&gt;404&lt;/CODE&gt; from that &lt;CODE&gt;hubfs&lt;/CODE&gt; link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To clarify, are these meeting engagements showing the correct times in the back end JSON, but&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; under&amp;nbsp;"Duration" on the front end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you share the support ticket number and perhaps a link to a contact record with an inaccurate engagement? I looked through your accounts but didn't see any open tickets citing this issue. I'd like to review my colleague's notes and continue digging for you.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:58:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277328#M25313</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-06-26T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277379#M25318</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/665"&gt;@IsaacTakushi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the ticket number:&amp;nbsp;&lt;STRONG&gt;2553136&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is an example contact:&amp;nbsp;&lt;A href="https://app.hubspot.com/contacts/3925488/contact/33560301" target="_blank"&gt;https://app.hubspot.com/contacts/3925488/contact/33560301&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Correct, the meeting times in the jQuery Hubspot provided me in a screenshot are correct 1:00 and 1:30 however the duration is showing incorrectly on the engagement.&amp;nbsp; Its showing 15 Minutes when it should be 30 minutes.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 14:18:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277379#M25318</guid>
      <dc:creator>ChrisEldridge</dc:creator>
      <dc:date>2019-06-26T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277394#M25322</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/68987"&gt;@ChrisEldridge&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing that information. I'll close the loop with Steve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_self"&gt;created&lt;/A&gt; a few &lt;CODE&gt;MEETING&lt;/CODE&gt; engagements in my own account and the&amp;nbsp;"Duration" correctly reflected the difference between the&amp;nbsp;&lt;CODE&gt;startTime&lt;/CODE&gt; and &lt;CODE&gt;endTime&lt;/CODE&gt; I defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this payload:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "engagement": {
        "active": true,
        "ownerId": 18624860,
        "type": "MEETING",
        "timestamp": 1561559798348
    },
    "associations": {
        "contactIds": [100001],
        "companyIds": [ ],
        "dealIds": [ ],
        "ownerIds": [ ]
    },
"metadata": {
    "body": "I had a 3:30 hour meeting with Sam.",
    "startTime": 1561554000000,
    "endTime": 1561566600000,
    "title": "My 3.5 Hour Meeting"
  }
}&lt;/PRE&gt;
&lt;P&gt;renders as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="Screen Shot 2019-06-26 at 10.46.42 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/18085i06456F4D1FFC3A4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-06-26 at 10.46.42 AM.png" alt="Screen Shot 2019-06-26 at 10.46.42 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;While the meeting with&amp;nbsp;&lt;A href="https://app.hubspot.com/contacts/3925488/contact/33560301" target="_self"&gt;this contact&lt;/A&gt;&amp;nbsp;has UNIX timestamps for&amp;nbsp;&lt;CODE&gt;startTime&lt;/CODE&gt; and &lt;CODE&gt;endTime&lt;/CODE&gt; that come out to 30 minutes apart (&lt;CODE&gt;1562072400&lt;/CODE&gt; and&amp;nbsp;&lt;CODE&gt;1562074200&lt;/CODE&gt;, respectively), they are in&amp;nbsp;&lt;EM&gt;seconds&lt;/EM&gt; rather than&amp;nbsp;&lt;EM&gt;milliseconds&lt;/EM&gt;. &lt;A href="https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis" target="_self"&gt;HubSpot's APIs accept&amp;nbsp;&lt;EM&gt;millisecond&lt;/EM&gt; timestamps&lt;/A&gt;, so I'm a bit surprised the engagement was accepted and placed on the timeline in 2019 instead of 1970.&lt;BR /&gt;&lt;BR /&gt;That abnormality aside, I suspect that HubSpot had trouble calculating the difference between these&amp;nbsp;&lt;EM&gt;second&lt;/EM&gt; timestamps and&amp;nbsp;automatically set the "Duration" to "15 minutes" because that is the shortest default duration for meetings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you seeing this behavior across all meeting engagements? Could you provide additional examples?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If all&amp;nbsp;&lt;CODE&gt;MEETING&lt;/CODE&gt; engagements are coming through with&amp;nbsp;&lt;EM&gt;second&lt;/EM&gt; timestamps, we'll likely have to work with Zapier to get&amp;nbsp;&lt;EM&gt;millisecond&lt;/EM&gt; timestamps sent over.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 14:59:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277394#M25322</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-06-26T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277400#M25325</link>
      <description>&lt;P&gt;Hello Again&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/665"&gt;@IsaacTakushi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are seeing this on all meeting engaements coming over through Zapier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are two additional examples:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.hubspot.com/contacts/3925488/contact/33045401" target="_blank"&gt;https://app.hubspot.com/contacts/3925488/contact/33045401&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.hubspot.com/contacts/3925488/contact/32968151" target="_blank"&gt;https://app.hubspot.com/contacts/3925488/contact/32968151&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my formatting settings in Zapier:&amp;nbsp;&lt;A href="https://cl.ly/2bf5bf095b60" target="_blank"&gt;https://cl.ly/2bf5bf095b60&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 15:14:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277400#M25325</guid>
      <dc:creator>ChrisEldridge</dc:creator>
      <dc:date>2019-06-26T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot &amp; Zapier - Meeting Engagement Showing Wrong Duration</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277729#M25381</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/68987"&gt;@ChrisEldridge&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing. I've confirmed that the behavior is caused by&amp;nbsp;epoch timestamps in&amp;nbsp;&lt;EM&gt;seconds&lt;/EM&gt;. A meeting's duration updates correctly with&amp;nbsp;&lt;EM&gt;millisecond&lt;/EM&gt; timestamps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Zapier's &lt;A href="https://zapier.com/help/formatter/#date-time" target="_self"&gt;documentation&lt;/A&gt; doesn't list millisecond timestamps&amp;nbsp;as an option, so it can only send timestamps over in seconds. As such, there is no out-of-the-box solution to this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will work with my team to see if we can set meeting durations based on the differences between second timestamps. Alternatively, we may be able to transform the second timestamps to millisecond timestamps on our end. To be transparent, we will likely not be able to prioritize this change in the immediate future, so I apologize for any inconvenience.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I will update this thread with pertinent developments.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:43:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-amp-Zapier-Meeting-Engagement-Showing-Wrong-Duration/m-p/277729#M25381</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-06-27T20:43:29Z</dc:date>
    </item>
  </channel>
</rss>

