<?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 Adding Video, Child Table, and Foreign ID's to API Created HubDB Table in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/356531#M35035</link>
    <description>&lt;P&gt;Hey everyone.&lt;BR /&gt;&lt;BR /&gt;So I'm trying to create a new hubdb table, or row in an existing table using the following endpoints :&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_row" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_row&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_table" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_table&lt;/A&gt;&lt;BR /&gt;and have noticed that neither of these docs mention anything about Video, child table, or foreign id inputs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible to do with the current api? If not has anyone found any sort of workaround for inputting&amp;nbsp;these data types?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 18:15:35 GMT</pubDate>
    <dc:creator>DavidFJones</dc:creator>
    <dc:date>2020-07-22T18:15:35Z</dc:date>
    <item>
      <title>Adding Video, Child Table, and Foreign ID's to API Created HubDB Table</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/356531#M35035</link>
      <description>&lt;P&gt;Hey everyone.&lt;BR /&gt;&lt;BR /&gt;So I'm trying to create a new hubdb table, or row in an existing table using the following endpoints :&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_row" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_row&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_table" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_table&lt;/A&gt;&lt;BR /&gt;and have noticed that neither of these docs mention anything about Video, child table, or foreign id inputs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible to do with the current api? If not has anyone found any sort of workaround for inputting&amp;nbsp;these data types?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 18:15:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/356531#M35035</guid>
      <dc:creator>DavidFJones</dc:creator>
      <dc:date>2020-07-22T18:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Video, Child Table, and Foreign ID's to API Created HubDB Table</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/357011#M35085</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/134503"&gt;@DavidFJones&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to create a HubDB table with both the video and foreign id as the columns field type:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"name": "Test Table via API",
	"columns": [{
			"name": "videotestapi",
			"label": "videotestapi",
			"id": 1,
			"foreignIdsById": {},
			"foreignIdsByName": {},
			"type": "VIDEO"
		},
		{
			"name": "fidapi",
			"label": "fidapi",
			"id": 2,
			"foreignTableId": 2612853,
			"foreignIds": [{
					"id": 27798116643,
					"name": "27798116643",
					"type": "foreignid"
				},
				{
					"id": 27798116644,
					"name": "27798116644",
					"type": "foreignid"
				},
				{
					"id": 27810438617,
					"name": "27810438617",
					"type": "foreignid"
				},
				{
					"id": 27810438621,
					"name": "27810438621",
					"type": "foreignid"
				}
			],
			"foreignIdsById": {
				"27798116643": {
					"id": 27798116643,
					"name": "27798116643",
					"type": "foreignid"
				},
				"27798116644": {
					"id": 27798116644,
					"name": "27798116644",
					"type": "foreignid"
				},
				"27810438621": {
					"id": 27810438621,
					"name": "27810438621",
					"type": "foreignid"
				},
				"27810438617": {
					"id": 27810438617,
					"name": "27810438617",
					"type": "foreignid"
				}
			},
			"foreignIdsByName": {
				"27810438617": {
					"id": 27810438617,
					"name": "27810438617",
					"type": "foreignid"
				},
				"27810438621": {
					"id": 27810438621,
					"name": "27810438621",
					"type": "foreignid"
				},
				"27798116644": {
					"id": 27798116644,
					"name": "27798116644",
					"type": "foreignid"
				},
				"27798116643": {
					"id": 27798116643,
					"name": "27798116643",
					"type": "foreignid"
				}
			},
			"type": "FOREIGN_ID"
		}
	]
}&lt;/PRE&gt;
&lt;P&gt;I'd advise for you to create the foreign ids column on the UI for one time so that you can use the&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/hubdb/v2/get_table" target="_blank" rel="noopener"&gt;Get details for a specific table&lt;/A&gt;&amp;nbsp;to retrieve all the foreign ids values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to child table, I'm not seeing any field type named as child table. Am I missing something here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 04:03:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/357011#M35085</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-07-24T04:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Video, Child Table, and Foreign ID's to API Created HubDB Table</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/362871#M35720</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Sorry for the late response. This project got a bit away from me.&lt;BR /&gt;&lt;BR /&gt;So the child table component I'm trying to add/update is for a multilevel dynamic template. I'm using these child table components&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="child table 2.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/30428iCD130E0A45E0C13D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="child table 2.png" alt="child table 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="child table 1.png" style="width: 240px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/30429i911CFE3D03E83A10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="child table 1.png" alt="child table 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since when creating/updating a foreign ID the value you input is that rows id, so far I have tried using the table's id that I wish to be the child table.&lt;BR /&gt;&lt;BR /&gt;The code has looked like this so far&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
        name: payload.hs_name,
        path: payload.path,
        child_table: payload.child_table,
}&lt;/LI-CODE&gt;&lt;P&gt;The value of payload.child_table is the id of the table I am wishing to use.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have also tried swapping out the key "child_table" with "child", as well as moved this value into the "values" section of the api call, but still with no success&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 18:15:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/362871#M35720</guid>
      <dc:creator>DavidFJones</dc:creator>
      <dc:date>2020-08-18T18:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Video, Child Table, and Foreign ID's to API Created HubDB Table</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/362875#M35721</link>
      <description>&lt;P&gt;Almost right after posting this I found the solution&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;childTableId: payload.child_table&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The key I was looking for was childTableId&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 18:22:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-Video-Child-Table-and-Foreign-ID-s-to-API-Created-HubDB/m-p/362875#M35721</guid>
      <dc:creator>DavidFJones</dc:creator>
      <dc:date>2020-08-18T18:22:09Z</dc:date>
    </item>
  </channel>
</rss>

