<?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: Get the full object from a crm object property in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/970247#M38868</link>
    <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of this. My goal is the get all the available product type options. Not just the one that is linked to a line item.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 08:56:14 GMT</pubDate>
    <dc:creator>SvanEck</dc:creator>
    <dc:date>2024-05-02T08:56:14Z</dc:date>
    <item>
      <title>Get the full object from a crm object property</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969822#M38859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a quote template and&amp;nbsp;i'm looking to render a crm object property with the crm_objects function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my property: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 16.29.54.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116571i6B93D4924262896F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-01 at 16.29.54.png" alt="Screenshot 2024-05-01 at 16.29.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 16.29.49.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116572i03D13B4190419A3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-01 at 16.29.49.png" alt="Screenshot 2024-05-01 at 16.29.49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 16.29.58.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116573iA8060DD20F7D5282/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-01 at 16.29.58.png" alt="Screenshot 2024-05-01 at 16.29.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does return the 8 options but only the id is in the object. I need the other values as well.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:35:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969822#M38859</guid>
      <dc:creator>SvanEck</dc:creator>
      <dc:date>2024-05-01T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get the full object from a crm object property</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969926#M38860</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/750297"&gt;@SvanEck&lt;/a&gt;&amp;nbsp;- I may be missing the full context here, but it looks like, by using the crm_objects (plural) function you are requesting a set of object IDs for the products in your instance. So the ID array you display looks like it may be correct - and that to get the values of the property in each object you have to loop over these results as explained here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/data/crm-objects" target="_blank"&gt;https://developers.hubspot.com/docs/cms/data/crm-objects&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the singular form of the function, you would see the values set for a specific object in a dict. The available values for the product type are the internal name strings you have set up for that property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 16:27:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969926#M38860</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-05-01T16:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get the full object from a crm object property</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969965#M38861</link>
      <description>&lt;P&gt;Product properties automatically end up as line item properties when you create your line items and then use those items in your quote.&amp;nbsp; The line items module will display them with those options already - unless your're developing your own replacement line item module you should not have to render this yourself - it's already there.&amp;nbsp; If I have misunderstood the question let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 17:24:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/969965#M38861</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-05-01T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get the full object from a crm object property</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/970241#M38867</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get all the available products with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;crm_objects("product")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each product, I can select a product_type:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-02 at 10.38.32.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116619i52F0FB7C9640384F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-02 at 10.38.32.png" alt="Screenshot 2024-05-02 at 10.38.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is a property:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-02 at 10.37.54.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116620iA49EAB4A45E36D81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-02 at 10.37.54.png" alt="Screenshot 2024-05-02 at 10.37.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is the get all the available values of that property (so no product at all, only the product type options possibly availble to a product):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 16.29.54.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/116621i9FF0C95ECD8F6996/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-01 at 16.29.54.png" alt="Screenshot 2024-05-01 at 16.29.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So im guessing its something in the line of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{crm_objects(product, product_type)}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{crm_property_definition("product", "product_type")}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nothing returns the product_type options.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 08:46:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/970241#M38867</guid>
      <dc:creator>SvanEck</dc:creator>
      <dc:date>2024-05-02T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get the full object from a crm object property</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/970247#M38868</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of this. My goal is the get all the available product type options. Not just the one that is linked to a line item.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 08:56:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-the-full-object-from-a-crm-object-property/m-p/970247#M38868</guid>
      <dc:creator>SvanEck</dc:creator>
      <dc:date>2024-05-02T08:56:14Z</dc:date>
    </item>
  </channel>
</rss>

