<?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: [HUBDB API] Get foreignid value instead of id in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727686#M59441</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/405"&gt;@BEN&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the link was just an example of the api endpoint. i dont want to expose the portalId or the tableId here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also cant use HubL and need to use the HubSpot API.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 10:04:41 GMT</pubDate>
    <dc:creator>Uther</dc:creator>
    <dc:date>2022-12-07T10:04:41Z</dc:date>
    <item>
      <title>[HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/726695#M59376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to get the value from my foreignids, right now the HudDB API only returns the id and type field, if the field is foreign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the value from foreign fields?&lt;/P&gt;&lt;P&gt;Talking about this endpoint: "&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/hubdb/api/v2/tables/*/rows?portalId=*" target="_blank"&gt;https://api.hubapi.com/hubdb/api/v2/tables/*/rows?portalId=*&lt;/A&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 16:23:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/726695#M59376</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2022-12-05T16:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727371#M59421</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/486935"&gt;@Uther&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60000"&gt;@ben-duchy&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146"&gt;@Gonzalo&lt;/a&gt;, do&amp;nbsp;you have any experience here? Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 19:21:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727371#M59421</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-12-06T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727676#M59440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/486935"&gt;@Uther&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your link is not working so I'm unsure if this is what you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating bespoke web modules that require 2 HubDB tables, this may help you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set example = hubdb_table_rows(1234567) %}
{% for row in example %}

  &amp;lt;!-- Step 1: Setup foreign ID column in your main HubDB table and link in HubL --&amp;gt;
  {% for foreign_row in row.bridge %}
 
    &amp;lt;!-- Step 2: Specify the foreign column that you want to lift --&amp;gt;
    {{ foreign_row["column_name"] }} --&amp;gt;

  {% endfor %}

{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:52:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727676#M59440</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-12-07T09:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727686#M59441</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/405"&gt;@BEN&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the link was just an example of the api endpoint. i dont want to expose the portalId or the tableId here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also cant use HubL and need to use the HubSpot API.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:04:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727686#M59441</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2022-12-07T10:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727690#M59443</link>
      <description>&lt;P&gt;It's not the method I use, but this may help you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/HubDB-API-how-to-add-Foreign-ID-type-columns-to-table/m-p/554675" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/HubDB-API-how-to-add-Foreign-ID-type-columns-to-table/m-p/554675&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:13:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727690#M59443</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-12-07T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727695#M59444</link>
      <description>&lt;P&gt;Its not exactly what i meant, i dont want to create foreign ids. I just want to receive the data from an HubDB Table. The rows dont display foreign values with thier value, instead they display the id of the value in the referenced table. My question was, if it is possible to receive the value with the same api call.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:17:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727695#M59444</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2022-12-07T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727700#M59445</link>
      <description>&lt;P&gt;As I'm not familar with this, are you able to share the code you have (hiding the table / key information) ? It may help others to have a crack at it too.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:38:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727700#M59445</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-12-07T10:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727816#M59452</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found a solution which involes another api call:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/cms/v3/hubdb/tables/{tableIdOrName}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Endpoint returns the details of the published table and with the parameter&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;includeForeignIds&lt;/LI-CODE&gt;&lt;P&gt;all foreign ID values will be populated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we can fetch the table details and get all of the foreign id values, after that we fetch all of our rows that we need and map the foregin ids with the values we received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:39:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/727816#M59452</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2022-12-07T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: [HUBDB API] Get foreignid value instead of id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/728289#M59491</link>
      <description>&lt;P&gt;Excellent&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 09:05:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HUBDB-API-Get-foreignid-value-instead-of-id/m-p/728289#M59491</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-12-08T09:05:51Z</dc:date>
    </item>
  </channel>
</rss>

