<?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: Inserting CRM Custom Object Record API Error in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/503636#M47334</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support and there was an issue that "property" key was missing in Json input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks__&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 20:18:45 GMT</pubDate>
    <dc:creator>pawanarora</dc:creator>
    <dc:date>2021-09-30T20:18:45Z</dc:date>
    <item>
      <title>Inserting CRM Custom Object Record API Error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/499620#M47108</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have created a CRM Custom Schema i.e. Applications successfully. Now, I am trying to insert a Custom Object (Record) into this schema by using following API in PHP:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;crm/v3/objects/&amp;lt;objectType&amp;gt;/?hapikey=********************&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But it is showing me the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Status: Error,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Message:&amp;nbsp;Error creating applicationofcontact.&amp;nbsp;Some required properties were not set.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Context:&amp;nbsp;properties":["property1","property2","property3","property4"]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;category:&amp;nbsp;VALIDATION_ERROR&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I pass the same values into&amp;nbsp;&lt;STRONG&gt;Create&lt;/STRONG&gt; section at&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/crm-custom-objects&lt;/A&gt;&lt;/STRONG&gt; along with&amp;nbsp;&lt;STRONG&gt;objectType&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;API Key&lt;/STRONG&gt; then it inserts the record with the same values of all properties of this object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise me to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Pawan Arora&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:31:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/499620#M47108</guid>
      <dc:creator>pawanarora</dc:creator>
      <dc:date>2021-09-23T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting CRM Custom Object Record API Error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/499782#M47119</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/251417"&gt;@pawanarora&lt;/a&gt;&amp;nbsp;, thanks for writing here.&lt;BR /&gt;Let's take it step-by-step.&lt;BR /&gt;1. First you created the schema by "POST"ing to &lt;CODE&gt;/crm/v3/schemas/{your-custom-object-name}?hapikey=********************&lt;/CODE&gt;&lt;BR /&gt;In this post I assume you defined all the data that you needed for your custom object, such as all its properties and the required properties as well.&lt;BR /&gt;Just clarifying that this is a one time thing you are doing to create a custom object. I usually just define it using postman or whatever, as I don't need it running in my app.&lt;BR /&gt;2. Then you want to create a new custom object. Here you need to define all the properties of that object alongside the required ones. You do this by "POST"ing to&lt;CODE&gt;/crm/v3/objects/{your-custom-object-name}?hapikey=********************&lt;/CODE&gt;&amp;nbsp; with the data you defined in the previous post. So for example if you had a property named "model" that was a type of "string" and was required, you should now put in the body of your request that data like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"properties":
  {"model":"ex-9000"}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I could be of more help if you presented more data of your usecase and see what's going on, I'm just starting with the basics because most errors are in the more obvious (easier to debug) places.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If my answer was helpful please mark it as a solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 19:05:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/499782#M47119</guid>
      <dc:creator>miljkovicmisa</dc:creator>
      <dc:date>2021-09-23T19:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting CRM Custom Object Record API Error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/503636#M47334</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support and there was an issue that "property" key was missing in Json input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks__&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 20:18:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Inserting-CRM-Custom-Object-Record-API-Error/m-p/503636#M47334</guid>
      <dc:creator>pawanarora</dc:creator>
      <dc:date>2021-09-30T20:18:45Z</dc:date>
    </item>
  </channel>
</rss>

