<?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: Can't create task in coded action due to TypeError in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/738964#M60141</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10278"&gt;@tsprunk&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Let's see if we can get some community insight. Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;,&amp;nbsp;do you have any experience here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 18:22:23 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-01-09T18:22:23Z</dc:date>
    <item>
      <title>Can't create task in coded action due to TypeError</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/738585#M60102</link>
      <description>&lt;P&gt;I'm looking to create tasks in a coded action and am running into TypeErrors even though everything seems to match the API documentation. Anyone know what I'm doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: I'm aware that there's already a workflow action to create tasks, I need to go beyond what's possible with that action, but can't even get it to create a simple task to begin with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current action code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-01-08 at 3.02.11 PM.png" style="width: 792px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82605i1E7F8453BC100D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-01-08 at 3.02.11 PM.png" alt="Screen Shot 2023-01-08 at 3.02.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Error:&lt;/P&gt;
&lt;PRE class=""&gt;TypeError: Cannot read properties of undefined (reading 'basicApi')
    at Object.exports.main (/var/task/file.js:22:61)
    at Runtime.exports.hubspot_handler [as handler] (/var/task/hubspotHandler.js:6:21)
    at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1089:29)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code's based off the documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/tasks" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/tasks&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 21:03:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/738585#M60102</guid>
      <dc:creator>tsprunk</dc:creator>
      <dc:date>2023-01-08T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create task in coded action due to TypeError</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/738964#M60141</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10278"&gt;@tsprunk&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Let's see if we can get some community insight. Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;,&amp;nbsp;do you have any experience here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 18:22:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/738964#M60141</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-01-09T18:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create task in coded action due to TypeError</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/739794#M60201</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;it looks like there may be an error in the documentation. It appears that rather than:&lt;/P&gt;
&lt;P&gt;hubspotClient.crm.objects.tasks.basicApi.create(SimplePublicObjectInput);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be:&lt;/P&gt;
&lt;P&gt;hubspotClient.crm.objects.basicApi.create("tasks",SimplePublicObjectInput);&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 02:11:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-create-task-in-coded-action-due-to-TypeError/m-p/739794#M60201</guid>
      <dc:creator>tsprunk</dc:creator>
      <dc:date>2023-01-11T02:11:06Z</dc:date>
    </item>
  </channel>
</rss>

