<?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 Get Custom Object by Id in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/694640#M30453</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with the custom objects and trying to ingest the whole object by id. Can't seem to be able to identify the way to do it.&lt;/P&gt;&lt;P&gt;The steaps are following:&lt;/P&gt;&lt;P&gt;1. getting the objectTypeId by calling:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/schemas" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/schemas&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. obtaining the list of objects under that category: &lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/&amp;lt;objectTypeId&amp;gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Trying to get the full custom object with all properties by calling:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/&amp;lt;objectTypeId&amp;gt;&lt;/A&gt;/id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However as a result I am getting following response:&lt;BR /&gt;{&lt;BR /&gt;"id": "&amp;lt;id&amp;gt;",&lt;BR /&gt;"properties": {&lt;BR /&gt;"hs_createdate": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"hs_lastmodifieddate": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"hs_object_id": "&amp;lt;another_id&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;"createdAt": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"updatedAt": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"archived": false&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing? The Custom object doc doesn't really explain this part of API much which is quite strange&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Sep 2022 23:53:22 GMT</pubDate>
    <dc:creator>DTyshetskyy</dc:creator>
    <dc:date>2022-09-18T23:53:22Z</dc:date>
    <item>
      <title>Get Custom Object by Id</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/694640#M30453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with the custom objects and trying to ingest the whole object by id. Can't seem to be able to identify the way to do it.&lt;/P&gt;&lt;P&gt;The steaps are following:&lt;/P&gt;&lt;P&gt;1. getting the objectTypeId by calling:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/schemas" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/schemas&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. obtaining the list of objects under that category: &lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/&amp;lt;objectTypeId&amp;gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Trying to get the full custom object with all properties by calling:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/&amp;lt;objectTypeId&amp;gt;&lt;/A&gt;/id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However as a result I am getting following response:&lt;BR /&gt;{&lt;BR /&gt;"id": "&amp;lt;id&amp;gt;",&lt;BR /&gt;"properties": {&lt;BR /&gt;"hs_createdate": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"hs_lastmodifieddate": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"hs_object_id": "&amp;lt;another_id&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;"createdAt": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"updatedAt": "2022-09-15T22:28:55.910Z",&lt;BR /&gt;"archived": false&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing? The Custom object doc doesn't really explain this part of API much which is quite strange&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 23:53:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/694640#M30453</guid>
      <dc:creator>DTyshetskyy</dc:creator>
      <dc:date>2022-09-18T23:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Custom Object by Id</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/694888#M30464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/449843"&gt;@DTyshetskyy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you've done most of the job there.&lt;BR /&gt;You're probably missing this simple thing : &lt;STRONG&gt;specify the list of properties you'd like to receive&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the &lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;custom objects endpoint&lt;/A&gt;, when using the GET you need to add, as a query parameter, the list of properties you want the call to return :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_1-1663597209036.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/75294i3F6260FD2D7C78C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="LMeert_1-1663597209036.png" alt="LMeert_1-1663597209036.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to do the same for your your custom object records and you should get there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !&lt;BR /&gt;If it does, please consider marking this answer as a solution &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;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:21:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/694888#M30464</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-09-19T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Custom Object by Id</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/697019#M30533</link>
      <description>&lt;P&gt;Hi Ludwig,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;It did work however the challenge for us is that we have fairly large custom objects with 100+ properties and the approach with passing every property name is quite a tedious one. On top of that it makes it unnecessarily diffucult to assemble the object from the response. Is it because you can't de-serialize the objects as a whole and require an explicit name?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 21:50:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/697019#M30533</guid>
      <dc:creator>DTyshetskyy</dc:creator>
      <dc:date>2022-09-22T21:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Custom Object by Id</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/697163#M30538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/449843"&gt;@DTyshetskyy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to get the entire object, then it would make sense to &lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;interrogate the object schema first&lt;/A&gt;, and from that response, take the properties list and pass it in the get object by id call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way you don't have to put up with building the call by listing the properties yourself.&lt;/P&gt;
&lt;P&gt;Now regarding the structure of the response, I agree this doesn not make reassembling the object easy, but I really don't think you've got a better shot at this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 07:04:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/697163#M30538</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-09-23T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Custom Object by Id</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/698437#M30585</link>
      <description>&lt;P&gt;Thank you, Ludwig!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:59:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-Custom-Object-by-Id/m-p/698437#M30585</guid>
      <dc:creator>DTyshetskyy</dc:creator>
      <dc:date>2022-09-26T19:59:31Z</dc:date>
    </item>
  </channel>
</rss>

