<?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 One to Many HubDB Relationships in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/One-to-Many-HubDB-Relationships/m-p/570294#M27220</link>
    <description>&lt;P&gt;I am new to Hubspot, and just figuring things out with regard to how to technically manage my data in HubDB and Hubl to do what I want.&amp;nbsp; I have played with this for a while, and done quite a bit of searching, but somewhere along the line I seem to be missing how to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to identify how to both create a one to many relationship in HubDB and how to use Hubl to extract that data visually.&amp;nbsp; Here is what I am trying to do.&amp;nbsp; We have a horse rescue where we take in horses, then rehabilitate and retrain them and subsequently rehome them.&amp;nbsp; As a part of advertising them for adoption, we post a gallery of videos and photos, along with their bio data.&amp;nbsp; Additionally, periodically we have a horse that has been adopted out, returned, maybe because the adopter can no longer afford to keep the horse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a traditional relationsl DB, I would set this up as a table of Horses where I have thier statistics (breed, gender, height, bio, etc) then a table of Horse Vidoes where I would add new videos of horses as we make them.&amp;nbsp; This table would just have the name of the horse in the video and the video.&amp;nbsp; A similar table for Horse Photos with just horse name and photo.&amp;nbsp; Finally a Horse Adoption table where each adoption is stored for all horses and a colum with the horses name, adoptor information, date of adoption, etc.&amp;nbsp; This table will also store data on when a horse is returned and the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then when I want to display the data on a horse, I would go to the Horse table as my base table, plus pull up the multiple photos and videos of the horse from the linked tables of Horse Photos and Horse Videos, based on the many rows that match the horses name.&amp;nbsp; Finally, add in the adoption information of the horse, out of the Horse Adoption table that would show history of when adopted and when returned, and then when re-adopted out by someone else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have worked out how to do a one to one relationship and render that data, but somehow am missing how to do a one to many.&amp;nbsp; I know I could just pull up the child table, and do a filter based on the horse name in the Horses table, then build a loop to pull all associated records, but it seems that there should be an internal wey to actually link these tables and render the data via a function or dot notation, and I am just not seeing it clearly documented anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also thought about creating the horses as a custom object as well, but it appears as though that is not an option, as I have a Professional account, and it appears that is only an option with an Enterprise account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance that you can provide me with how to configure this would be GREATLY appreciated!!&lt;/P&gt;</description>
    <pubDate>Sun, 06 Feb 2022 16:33:06 GMT</pubDate>
    <dc:creator>RKnott</dc:creator>
    <dc:date>2022-02-06T16:33:06Z</dc:date>
  </channel>
</rss>

