<?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 an engagement after a company throws an internal service error in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-an-engagement-after-a-company-throws-an-internal/m-p/283954#M26223</link>
    <description>&lt;P&gt;Nevermind i got it, I was parsing the companyId incorrectly.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 19:05:41 GMT</pubDate>
    <dc:creator>pocketexpert</dc:creator>
    <dc:date>2019-08-01T19:05:41Z</dc:date>
    <item>
      <title>Creating an engagement after a company throws an internal service error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-an-engagement-after-a-company-throws-an-internal/m-p/283950#M26222</link>
      <description>&lt;P&gt;Immediately after creating a company I am trying to create an engagement tied to that company for our sales team. When creating the engagement an internal service error is returned. When I use the same timestamp and companyId in postman right after seeing the failure it succeeds. Here is the string I am sending in Java:&lt;/P&gt;&lt;P&gt;"{\"engagement\": {" +&lt;BR /&gt;"\"active\": true," +&lt;BR /&gt;"\"ownerId\": 38143121," +&lt;BR /&gt;"\"type\": \"TASK\"," +&lt;BR /&gt;"\"timestamp\": " + date.getTime() +&lt;BR /&gt;"}," +&lt;BR /&gt;"\"associations\": {" +&lt;BR /&gt;"\"contactIds\": []," +&lt;BR /&gt;"\"companyIds\": [" + companyId + "]," +&lt;BR /&gt;"\"dealIds\": []," +&lt;BR /&gt;"\"ownerIds\": [38143121]" +&lt;BR /&gt;"}," +&lt;BR /&gt;"\"attachments\": []," +&lt;BR /&gt;"\"metadata\": {" +&lt;BR /&gt;"\"body\": \"Merge the deal for this company into this site.\"," +&lt;BR /&gt;"\"subject\": \"Merge the deal into this site\"," +&lt;BR /&gt;"\"status\": \"NOT_STARTED\"," +&lt;BR /&gt;"\"forObjectType\": \"COMPANY\"" +&lt;BR /&gt;"}" +&lt;BR /&gt;"}";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 18:24:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-an-engagement-after-a-company-throws-an-internal/m-p/283950#M26222</guid>
      <dc:creator>pocketexpert</dc:creator>
      <dc:date>2019-08-01T18:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an engagement after a company throws an internal service error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-an-engagement-after-a-company-throws-an-internal/m-p/283954#M26223</link>
      <description>&lt;P&gt;Nevermind i got it, I was parsing the companyId incorrectly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 19:05:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-an-engagement-after-a-company-throws-an-internal/m-p/283954#M26223</guid>
      <dc:creator>pocketexpert</dc:creator>
      <dc:date>2019-08-01T19:05:41Z</dc:date>
    </item>
  </channel>
</rss>

