<?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: Creating Note via API - Created By or Owner fields in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486686#M46321</link>
    <description>&lt;P&gt;I would check to make sure you are supplying the right ownerId. These are hubspot internal users.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;here is what I am using and it is allowing me to see the the "By OWNER":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;noteObj&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;await&lt;/SPAN&gt;&lt;SPAN&gt; hubspot&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;engagements&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;create&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;engagement&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;active&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ownerId&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;47517632&lt;/S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lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;attachments&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;metadata&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;`OWNER ID TEST&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 28 Aug 2021 00:46:26 GMT</pubDate>
    <dc:creator>Mansoor</dc:creator>
    <dc:date>2021-08-28T00:46:26Z</dc:date>
    <item>
      <title>Creating Note via API - Created By or Owner fields</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486407#M46316</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user creates a note via HubSpot app, the creator is identified:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the "by Diogo Cabral", the user who created the note.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Created By" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/49242i2B38A78DFB2C6E16/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-27 at 16.38.38.png" alt="Created By" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Created By&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when you create via API, I can't get this to show up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="No Created By" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/49243i2B428BD49E4C6BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-27 at 16.39.43.png" alt="No Created By" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;No Created By&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the JSON I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"engagement": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"active": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"ownerId": &amp;lt;redacted&amp;gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"type": "NOTE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"timestamp": 1404122644778&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"associations": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"contactIds": [4009],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"companyIds": [ ],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"dealIds": [ ],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"ownerIds": [&amp;lt;redacted&amp;gt;],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"ticketIds": [ ]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"attachments": [ ],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"metadata": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"body": "bla bla bla"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;(sorry, I can't format this, for some reason)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried everything I can remember, like adding createdBy, ownerId in metadata and in associations, source/sourceId, but can't get it to appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the context of a data migration, it's quite important to be know who created a note in some other system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone offer assistance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 08:49:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486407#M46316</guid>
      <dc:creator>diogodpc</dc:creator>
      <dc:date>2021-08-30T08:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Note via API - Created By or Owner fields</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486686#M46321</link>
      <description>&lt;P&gt;I would check to make sure you are supplying the right ownerId. These are hubspot internal users.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;here is what I am using and it is allowing me to see the the "By OWNER":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;noteObj&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;await&lt;/SPAN&gt;&lt;SPAN&gt; hubspot&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;engagements&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;create&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;engagement&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;active&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ownerId&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;47517632&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;NOTE&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPA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DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;metadata&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;`OWNER ID TEST&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Aug 2021 00:46:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486686#M46321</guid>
      <dc:creator>Mansoor</dc:creator>
      <dc:date>2021-08-28T00:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Note via API - Created By or Owner fields</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486812#M46326</link>
      <description>&lt;P&gt;Hey Mansoor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response - are you using API token or Oauth to authenticate? I'm thinking maybe that's the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using an API key, and have triple checked the User ID by GETting existing engagements - it's the correct value, unfortunately...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dc&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 16:54:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486812#M46326</guid>
      <dc:creator>diogodpc</dc:creator>
      <dc:date>2021-08-28T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Note via API - Created By or Owner fields</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486877#M46330</link>
      <description>&lt;P&gt;I am using an API token.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was able to find the ownerID going through the manage properties on a deal and using the owner ID from the list of populated values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 03:03:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/486877#M46330</guid>
      <dc:creator>Mansoor</dc:creator>
      <dc:date>2021-08-29T03:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Note via API - Created By or Owner fields</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/487165#M46338</link>
      <description>&lt;P&gt;Hi Mansoor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are absolutely right!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the record, here's where I was wrong: I thought the user ID was the last part of the URL when you go into a user's page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/" target="_blank"&gt;https://app.hubspot.com/settings/&amp;lt;instanceId&amp;gt;/users/editUser/IdGoesHere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's the value I was using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it turns out that is not the ID. I got the ID like you said, by going into a deal and inspecting the OwnerID element. Sent in the correct ID, and worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;dc&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 08:51:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Note-via-API-Created-By-or-Owner-fields/m-p/487165#M46338</guid>
      <dc:creator>diogodpc</dc:creator>
      <dc:date>2021-08-30T08:51:48Z</dc:date>
    </item>
  </channel>
</rss>

