<?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: Website/Landing page that fetches and write data to CRM in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706573#M30901</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/data/crm-objects#supported-crm-object-types" target="_blank" rel="noopener"&gt;You can only access deals from a membership or password-protected page&lt;/A&gt;. Is this the case for the page you are building? Only products, marketing events, and custom objects are available on public pages.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 11:24:59 GMT</pubDate>
    <dc:creator>Teun</dc:creator>
    <dc:date>2022-10-17T11:24:59Z</dc:date>
    <item>
      <title>Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706333#M30888</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I have a complex scenario that i am trying to solve. Basically what we require is a website/landing page, that can fetch and display data based on a contact ID that is passed in the URL as a parameter maybe.&lt;BR /&gt;Another section of this page would be able to write data to the CRM (I was thinking of embedding a form for the same).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;So to sum it up, i'll give a live scenario that we are expecting:&lt;/STRONG&gt;&lt;BR /&gt;1) Share a link with a contact&lt;BR /&gt;2) Display the data fetched form inside this contact (and from associated objects if possible)&lt;BR /&gt;3) If this contact fills the input fields, update the properties related to this contact.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;In your opinion, what is the best practice to achieve this?&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 11:36:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706333#M30888</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-16T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706391#M30889</link>
      <description>&lt;P&gt;You can build&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/guides/dynamic-pages/crm-objects" target="_blank" rel="noopener"&gt;dynamic pages based on crm objects&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Limitations of that approach would be that as you're using company info the page needs to be password protected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't want to go that route, I imagine it'd need to be the &lt;A href="https://developers.hubspot.com/docs/api/crm/understanding-the-crm" target="_blank" rel="noopener"&gt;CRM API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 00:51:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706391#M30889</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-10-17T00:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706494#M30896</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your reply!&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I tried dynamic pages, but went through some issues configuring the page slug.&lt;BR /&gt;I picked contact record id as the page slug, but wasn't able to configure it / pass it to the page to display accordingly.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Are you aware if i can access the associated objects of the contact i am fetching to the page?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 08:21:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706494#M30896</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-17T08:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706524#M30898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out this &lt;A href="https://developers.hubspot.com/docs/cms/data/crm-objects" target="_blank" rel="noopener"&gt;page&lt;/A&gt; of the docs. You should be able to use the `crm_object` and `crm_associations` functions. For the form, I would advise you to use a default HubSpot form and add contact properties and other object properties to the form. You are not limited to only using contact properties in your form.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:22:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706524#M30898</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-10-17T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706570#M30900</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;This is what i have in my module so far. i am able to fetch the property values for the contact passed in the dynamic page, but for the associated deals to this contact, it is diplaying nothing. I even tried to pass the contact id directly in the code to test, but still no luck:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% if dynamic_page_crm_object %}&lt;/P&gt;&lt;P&gt;{% set user = dynamic_page_crm_object %}&lt;BR /&gt;&lt;BR /&gt;&amp;lt;h1 style="color:#000000;"&amp;gt;{{user.firstname}} {{user.lastname}} &amp;lt;br/&amp;gt; {{user.email}} &amp;lt;br/&amp;gt; {{user.phone}} &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{% set contact_id = request_contact.contact_vid %}&lt;BR /&gt;{% set deals = crm_associations(contact_id,"HUBSPOT_DEFINED", 4) %}&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ul&amp;gt;&lt;BR /&gt;{% for deal in deals %}&lt;BR /&gt;&amp;lt;li&amp;gt;{{ deal.customer_full_name }}&amp;lt;/li&amp;gt;&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/ul&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 11:20:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706570#M30900</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-17T11:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706573#M30901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/data/crm-objects#supported-crm-object-types" target="_blank" rel="noopener"&gt;You can only access deals from a membership or password-protected page&lt;/A&gt;. Is this the case for the page you are building? Only products, marketing events, and custom objects are available on public pages.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 11:24:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706573#M30901</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-10-17T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706577#M30902</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the page is private (password protected).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 11:39:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706577#M30902</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-17T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706579#M30903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I checked the following things:&lt;/P&gt;
&lt;P&gt;1. Your&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;definition ID&lt;/A&gt; of the association is correct.&lt;/P&gt;
&lt;P&gt;2. It is a HubSpot-defined association, so that is correct as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This leaves the contact ID itself. If you use&lt;STRONG&gt; {{&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;contact_id|pprint}}&lt;/STRONG&gt; does it show a correct value? And if you use &lt;STRONG&gt;{{deals|pprint}}&lt;/STRONG&gt;, what does that give you?&lt;BR /&gt;And if you paste the contact ID directly as a string in the function, does that change anything?&lt;BR /&gt;&lt;STRONG&gt;{% set deals = crm_associations("1234","HUBSPOT_DEFINED", 4) %}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{{deals|pprint}}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You could also try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set deals = crm_associations(contact_id,"HUBSPOT_DEFINED", 4, "limit=50", "customer_full_name", false) %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because it could be that you need to retrieve the specific property.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 11:50:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706579#M30903</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-10-17T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706583#M30904</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;, good news!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;When i am doing the&amp;nbsp;&lt;STRONG&gt;{{deals|pprint}},&amp;nbsp;&lt;/STRONG&gt;it is returning the associated deals as follow:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;(CrmObjectList: {hasMore=false, offset=2, results=[{customer_full_name=test2 test2, id=6802074961}, {id=9613818449}, {customer_full_name=test test, id=9614892653}], total=2})&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The issue seems in the for loop&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:03:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706583#M30904</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-17T12:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706611#M30905</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-17 at 4.58.08 PM.png" style="width: 714px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/77287iFBC65483E9798870/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-10-17 at 4.58.08 PM.png" alt="Screen Shot 2022-10-17 at 4.58.08 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:58:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706611#M30905</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-10-17T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Website/Landing page that fetches and write data to CRM</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706621#M30906</link>
      <description>&lt;P&gt;So your code should be:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for deal in deals.results %}
&amp;lt;li&amp;gt;{{ deal.customer_full_name }}&amp;lt;/li&amp;gt;
{% endfor %}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:23:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Website-Landing-page-that-fetches-and-write-data-to-CRM/m-p/706621#M30906</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-10-17T13:23:37Z</dc:date>
    </item>
  </channel>
</rss>

