<?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 Wrong owner in report dashboard when using engagement API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/303904#M28643</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're currently using the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_blank" rel="noopener"&gt;Create Engagement&lt;/A&gt;&amp;nbsp;API to log calls from our call service. But there is a problem with the report dashboard which only happens lately. I've attached 2 screenshots &amp;amp; as you guys can see, on the report dashboard, the owner is different from the owner on the contact details page. In fact, all of the CALLs in the report dashboard is from the same owner (in this case our admin).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Report dashboard" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21653i631B0175112360C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_410.png" alt="Report dashboard" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Report dashboard&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Contact details" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21654i304554D7657CB0BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_409.png" alt="Contact details" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Contact details&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the API body that we use. The same format has been used since August &amp;amp; it's worked fine. I even go back and re-use one of our requests from August &amp;amp; the same happened.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "engagement": {
        "active": true,
        "type": "CALL",
        "ownerId": 36291376
    },
    "associations": {
        "contactIds": [
            401
        ]
    },
    "metadata": {
        "toNumber": "0933154456",
        "fromNumber": "112",
        "status": "COMPLETED",
        "body": "[Test CALL] From TienNHA (112) to 0933154456",
        "durationMilliseconds": 1997,
        "disposition": "f240bbac-87c9-4f6e-bf70-924b57d47db7"
    }
}&lt;/PRE&gt;&lt;P&gt;I hope you guys can help me with this &amp;amp; figure out a fix soon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: manually call logs are fine&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 14:21:42 GMT</pubDate>
    <dc:creator>tienbk97</dc:creator>
    <dc:date>2019-11-25T14:21:42Z</dc:date>
    <item>
      <title>Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/303904#M28643</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're currently using the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_blank" rel="noopener"&gt;Create Engagement&lt;/A&gt;&amp;nbsp;API to log calls from our call service. But there is a problem with the report dashboard which only happens lately. I've attached 2 screenshots &amp;amp; as you guys can see, on the report dashboard, the owner is different from the owner on the contact details page. In fact, all of the CALLs in the report dashboard is from the same owner (in this case our admin).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Report dashboard" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21653i631B0175112360C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_410.png" alt="Report dashboard" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Report dashboard&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Contact details" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21654i304554D7657CB0BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_409.png" alt="Contact details" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Contact details&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the API body that we use. The same format has been used since August &amp;amp; it's worked fine. I even go back and re-use one of our requests from August &amp;amp; the same happened.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "engagement": {
        "active": true,
        "type": "CALL",
        "ownerId": 36291376
    },
    "associations": {
        "contactIds": [
            401
        ]
    },
    "metadata": {
        "toNumber": "0933154456",
        "fromNumber": "112",
        "status": "COMPLETED",
        "body": "[Test CALL] From TienNHA (112) to 0933154456",
        "durationMilliseconds": 1997,
        "disposition": "f240bbac-87c9-4f6e-bf70-924b57d47db7"
    }
}&lt;/PRE&gt;&lt;P&gt;I hope you guys can help me with this &amp;amp; figure out a fix soon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: manually call logs are fine&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:21:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/303904#M28643</guid>
      <dc:creator>tienbk97</dc:creator>
      <dc:date>2019-11-25T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304107#M28672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92364"&gt;@tienbk97&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is indeed strange and I wasn't able to reproduce this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried creating an engagement using this endpoint:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_blank"&gt;Create an Engagement | Engagements API&lt;/A&gt;&amp;nbsp;and the following POST body:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "engagement": {
        "active": true,
        "type": "CALL",
        "ownerId": 36291376
    },
    "associations": {
        "contactIds": [
            401
        ]
    },
    "metadata": {
        "toNumber": "0933154456",
        "fromNumber": "112",
        "status": "COMPLETED",
        "body": "[Test CALL] From HubSpot",
        "durationMilliseconds": 1997,
        "disposition": "f240bbac-87c9-4f6e-bf70-924b57d47db7"
    }
}&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;(where ownerId&amp;nbsp;36291376 == Tien)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm able to see that the call I created:&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-11-26 at 10.49.48 AM.png" style="width: 613px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21687iD07F7A3A7CC4DBD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-11-26 at 10.49.48 AM.png" alt="Screen Shot 2019-11-26 at 10.49.48 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;was reflected correctly on the Productivity report:&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-11-26 at 10.56.42 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21688iE13F7A8EBBC37737/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-11-26 at 10.56.42 AM.png" alt="Screen Shot 2019-11-26 at 10.56.42 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try and see if you're still seeing a mismatched?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 02:57:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304107#M28672</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-11-26T02:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304127#M28679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. I tried again with your body &amp;amp; the same thing happens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Report dashboard" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21691iF48108F6E0C1D50B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_414.png" alt="Report dashboard" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Report dashboard&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Contact details" style="width: 933px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21692iC41F99D4077F193E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_415.png" alt="Contact details" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Contact details&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the call that you've logged on 10:48AM is displayed correctly. Is there any diffrent between our requests? I use the OAuth token &lt;STRONG&gt;not&lt;/STRONG&gt; API key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank again.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 05:54:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304127#M28679</guid>
      <dc:creator>tienbk97</dc:creator>
      <dc:date>2019-11-26T05:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304334#M28706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92364"&gt;@tienbk97&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ahh, that's the key difference! I was using hapikey.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe I'm able to shed some light on this behavior. When using OAuth to create an engagement, it'll populate the createdBy and modifiedBy property and&amp;nbsp;it is set as the user who the app is authenticated to (in this case, I assumed Nam Le was the one that authenticated the app). Whereas if you're using hapikey, it will just create the engagement without those properties as a specific user cannot be tied to a portal hapikey.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The report pulls the person who created the engagement and not the owner of the engagement and so we are seeing Nam Le logged the engagement when the owner is Tien when using OAuth because of the reason stated above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I'd recommend you to build a custom report that will show the Owner and not the 'Created By'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As reference from this forum thread:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Engagement-Owner/td-p/228748" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Engagement-Owner/td-p/228748&lt;/A&gt;&amp;nbsp;where you can refer to Robert's latest comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you need further clarification on this!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 02:37:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304334#M28706</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-11-27T02:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304749#M28783</link>
      <description>&lt;P&gt;Hi Wendy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked through Robert's comment &amp;amp; it said that I should create another report and it'll show the owner instead of created by. That is fine with "chart-like" reports but for some of our clients, they want to use the original "Productivity" report which shows every engagement daily at a glance. They really prefer the details in every engagement (in this case CALLS) instead of just viewing the total count of calls. Is it possible for us to change up the way we call the API to edit engagement "created_by" or is there any setting we can config to edit "productivity" report?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:38:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304749#M28783</guid>
      <dc:creator>tienbk97</dc:creator>
      <dc:date>2019-11-29T07:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304904#M28798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92364"&gt;@tienbk97&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, it is not possible for us to edit the default report - &lt;EM&gt;Productivity&lt;/EM&gt; or change the way the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/create_engagement" target="_blank" rel="nofollow noopener noreferrer"&gt;Create an Engagement | Engagements API&lt;/A&gt;&amp;nbsp;populate the createdBy and modifiedBy properties. On my end, I did try to manually include both the createdBy and modifiedBy properties however as it is being created by an OAuth, the user would still be link to the user who&amp;nbsp;&lt;SPAN&gt;authenticated&lt;/SPAN&gt; the app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, maybe what some of your client can do is to include the custom report beside the default report - &lt;EM&gt;Productivity&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, when creating the custom report, they should be able to filter the engagement activity type to only Call and can further click into the contact who has the associated Call engagement:&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="customReport.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21820i25328AE1D9ED45F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="customReport.png" alt="customReport.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 03:10:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304904#M28798</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-12-02T03:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong owner in report dashboard when using engagement API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304908#M28799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 02:25:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Wrong-owner-in-report-dashboard-when-using-engagement-API/m-p/304908#M28799</guid>
      <dc:creator>tienbk97</dc:creator>
      <dc:date>2019-12-02T02:25:57Z</dc:date>
    </item>
  </channel>
</rss>

