<?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: Dynamic Pages Using CRM Objects in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/738022#M60125</link>
    <description>&lt;P&gt;Hello Syeda ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am very happy you gave me something idea that can get through.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Btw mam , Hope you can give me some tutorial how to request a Deals API can you check the image below uploaded mam is that endpoint will be the one to be used ? I been trying to run the code on the right panel and inserted on the javascript section on my design manager already but its always failing.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&amp;nbsp; Can you show me a sample coded that can make the request working mam thanks.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does it need to run Nodejs on my pc first mam ? inorder to make the code work mam ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jun22_0-1672989220752.png" style="width: 687px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82524i5A21FF98B0989B00/image-dimensions/687x420?v=v2" width="687" height="420" role="button" title="Jun22_0-1672989220752.png" alt="Jun22_0-1672989220752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 07:19:51 GMT</pubDate>
    <dc:creator>Jun22</dc:creator>
    <dc:date>2023-01-06T07:19:51Z</dc:date>
    <item>
      <title>Dynamic Pages Using CRM Objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/736504#M60123</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82273iDB92C80F6487DA2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have Deals item listed on a page right now,&amp;nbsp; What I need if its possible when each deal item being clicked it will redirected to a page . Anyone here has something done similar to mine how can we achieve clicking those each item and retrieved data from the deal being clicked ?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below image is the individual deal based on ID . What if we get that company name and address etc. on a cms page dynamically based on the deal clicked on the item above. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jun22_0-1672739121905.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82277iE619D38D4492E6A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jun22_0-1672739121905.png" alt="Jun22_0-1672739121905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 09:46:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/736504#M60123</guid>
      <dc:creator>Jun22</dc:creator>
      <dc:date>2023-01-03T09:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pages Using CRM Objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/736536#M60124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/126836"&gt;@Jun22&lt;/a&gt;, You could use HubSpot's JavaScript API to capture the click events from the deals and then build out a URL for the page you'd like the user to be redirected to.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In order to do this, you'll need to make a request to the Deals API to get the deal object associated with the deal item being clicked by the user. Once you have the deal object, you can use the deal properties to build a URL for the page you'd like to redirect the user to.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For more information about HubSpot's JavaScript API, please do refer to this suggested doc based on HubSpot's Developer:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/overview" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/overview&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;And Yes, the&amp;nbsp;company name and address&amp;nbsp;is possible with HubSpot CMS.&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;Hub&lt;/SPAN&gt;&lt;SPAN&gt;Spot&lt;/SPAN&gt;&lt;SPAN&gt; CMS&lt;/SPAN&gt;&lt;SPAN&gt; allows&lt;/SPAN&gt;&lt;SPAN&gt; you&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; dynamically&lt;/SPAN&gt;&lt;SPAN&gt; pull&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; content&lt;/SPAN&gt;&lt;SPAN&gt; from&lt;/SPAN&gt;&lt;SPAN&gt; other&lt;/SPAN&gt;&lt;SPAN&gt; sources&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; including&lt;/SPAN&gt;&lt;SPAN&gt; CR&lt;/SPAN&gt;&lt;S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t; that&lt;/SPAN&gt;&lt;SPAN&gt; pull&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; data&lt;/SPAN&gt;&lt;SPAN&gt; from&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; API&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;BR /&gt;Y&lt;SPAN&gt;ou can also use the HubSpot CMS to populate the page with the relevant data for each contact.&lt;BR /&gt;&lt;BR /&gt;Let me know if more clarification is needed. Cheers!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Jan 2023 12:05:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/736536#M60124</guid>
      <dc:creator>Syeda_Fatima</dc:creator>
      <dc:date>2023-01-03T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pages Using CRM Objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/738022#M60125</link>
      <description>&lt;P&gt;Hello Syeda ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am very happy you gave me something idea that can get through.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Btw mam , Hope you can give me some tutorial how to request a Deals API can you check the image below uploaded mam is that endpoint will be the one to be used ? I been trying to run the code on the right panel and inserted on the javascript section on my design manager already but its always failing.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&amp;nbsp; Can you show me a sample coded that can make the request working mam thanks.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does it need to run Nodejs on my pc first mam ? inorder to make the code work mam ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jun22_0-1672989220752.png" style="width: 687px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82524i5A21FF98B0989B00/image-dimensions/687x420?v=v2" width="687" height="420" role="button" title="Jun22_0-1672989220752.png" alt="Jun22_0-1672989220752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 07:19:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/738022#M60125</guid>
      <dc:creator>Jun22</dc:creator>
      <dc:date>2023-01-06T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pages Using CRM Objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/738026#M60126</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/126836"&gt;@Jun22&lt;/a&gt;,&amp;nbsp;There are several tutorials available online that can help you learn how to request a Deals API. Here is a great tutorial from DigitalOcean that covers the basics:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2" target="_blank"&gt;https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It includes step-by-step instructions for setting up an API request, as well as a sample code that you can use to make a request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using the JavaScript code provided in the right panel, then you can use the following code sample to make a request (&lt;STRONG&gt;note:&lt;/STRONG&gt; you will need to replace the sample API key and URL with your own):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var API_KEY = "YOUR_API_KEY";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var API_URL = "&lt;A href="https://api.digitalocean.com/v2/deals" target="_blank"&gt;https://api.digitalocean.com/v2/deals&lt;/A&gt;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var request = new XMLHttpRequest();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request.open("GET", API_URL, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request.setRequestHeader("Content-Type", "application/json");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request.setRequestHeader("Authorization", "Bearer " + API_KEY);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request.onload = function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (this.status &amp;gt;= 200 &amp;amp;&amp;amp; this.status &amp;lt; 400) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // Success&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; var data = JSON.parse(this.response);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; console.log(data);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // Error&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; console.log("Error");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request.send();&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 07:31:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/738026#M60126</guid>
      <dc:creator>Syeda_Fatima</dc:creator>
      <dc:date>2023-01-06T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pages Using CRM Objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/757738#M61531</link>
      <description>&lt;P&gt;Hello syeda,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I made&amp;nbsp;&lt;SPAN&gt;make a request to the Deals API to get the deal object associated already. Right now what I need is where I can see a sample code of "HubSpot's JavaScript API to capture the click events from the deals and then build out a URL for the page you'd like the user to be redirected to."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jun22_0-1676630882736.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/85616i3072C83701B75E0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jun22_0-1676630882736.png" alt="Jun22_0-1676630882736.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 10:49:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Dynamic-Pages-Using-CRM-Objects/m-p/757738#M61531</guid>
      <dc:creator>Jun22</dc:creator>
      <dc:date>2023-02-17T10:49:38Z</dc:date>
    </item>
  </channel>
</rss>

