<?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: Scrapping website content to inject in email workflow in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359790#M17901</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/140856"&gt;@Jf2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on my comment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checkout &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt; 's answer to &lt;A href="https://community.hubspot.com/t5/CMS-Development/Use-CRM-data-in-JS/m-p/313473#M15005" target="_blank" rel="noopener"&gt;this post.&lt;/A&gt; This is the technique you'd want to use to get the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write a function similar to the code below to get the data and add it to the window object:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$(document).ready(function() {
      // Declare your table data variable
      var tableData = [];

      $('#target tr').each(function(index) {
        // Add empty array to the tableData variable
        tableData.push([]);

        // Loop through trs and push values to the array at index
        $(this).find('td').each(function(j, el) {
          tableData[index].push(el.textContent);
        });
      });

      // Add the tableDato the window object for easy access
      window.tableData = tableData;
    });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll get a data structure like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screeenshot - 2020-08-05 at 4.38.15 PM.png" style="width: 576px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/29978iBF985F5E1BBF26D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screeenshot - 2020-08-05 at 4.38.15 PM.png" alt="Screeenshot - 2020-08-05 at 4.38.15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then write a function that populates the hidden fields in the popup. Somthing like this maybe:&lt;/P&gt;
&lt;PRE&gt;$('#hidden-field-id').val(window.tableData[1][2]);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 20:39:41 GMT</pubDate>
    <dc:creator>Kevin-C</dc:creator>
    <dc:date>2020-08-05T20:39:41Z</dc:date>
    <item>
      <title>Scrapping website content to inject in email workflow</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359577#M17879</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking to set up the following process (need help with step 3):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;User comes to client site and creates a quote&lt;/LI&gt;&lt;LI&gt;User displays exit intent, HubSpot pop up drives user to receive quote by email&lt;/LI&gt;&lt;LI&gt;HubSpot to scrape the quote table from the page they are on and inject content into an email via the use of workflows/tokens or any proposed process&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for all thoughts in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 08:13:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359577#M17879</guid>
      <dc:creator>Jf2</dc:creator>
      <dc:date>2020-08-05T08:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scrapping website content to inject in email workflow</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359729#M17889</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/140856"&gt;@Jf2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this could be rather simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On page load capture the table data and store it on the window.&lt;/P&gt;
&lt;P&gt;On "exit intent", popup a form with hiden field.&lt;/P&gt;
&lt;P&gt;Populate the forms hidden field with the data from the window variable.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:00:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359729#M17889</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-08-05T17:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scrapping website content to inject in email workflow</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359790#M17901</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/140856"&gt;@Jf2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on my comment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checkout &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt; 's answer to &lt;A href="https://community.hubspot.com/t5/CMS-Development/Use-CRM-data-in-JS/m-p/313473#M15005" target="_blank" rel="noopener"&gt;this post.&lt;/A&gt; This is the technique you'd want to use to get the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write a function similar to the code below to get the data and add it to the window object:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$(document).ready(function() {
      // Declare your table data variable
      var tableData = [];

      $('#target tr').each(function(index) {
        // Add empty array to the tableData variable
        tableData.push([]);

        // Loop through trs and push values to the array at index
        $(this).find('td').each(function(j, el) {
          tableData[index].push(el.textContent);
        });
      });

      // Add the tableDato the window object for easy access
      window.tableData = tableData;
    });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll get a data structure like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screeenshot - 2020-08-05 at 4.38.15 PM.png" style="width: 576px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/29978iBF985F5E1BBF26D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screeenshot - 2020-08-05 at 4.38.15 PM.png" alt="Screeenshot - 2020-08-05 at 4.38.15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then write a function that populates the hidden fields in the popup. Somthing like this maybe:&lt;/P&gt;
&lt;PRE&gt;$('#hidden-field-id').val(window.tableData[1][2]);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:39:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Scrapping-website-content-to-inject-in-email-workflow/m-p/359790#M17901</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-08-05T20:39:41Z</dc:date>
    </item>
  </channel>
</rss>

