<?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: Custom code in Workflow to calculate number of emails? in Data Hub</title>
    <link>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/911303#M2057</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/526283"&gt;@ABrandt&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Community!&lt;BR /&gt;&lt;BR /&gt;I found for you similar threads that might be of interest:&lt;BR /&gt;&lt;BR /&gt;- The solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/57728"&gt;@KimM&lt;/a&gt;&amp;nbsp;on this post "&lt;A href="https://community.hubspot.com/t5/9881-Operations-Hub/Custom-Code-to-Count-Activities/m-p/792175" target="_blank" rel="noopener"&gt;Custom Code to Count Activities&lt;/A&gt;"&lt;BR /&gt;- The&amp;nbsp;post from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;on this post "&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Using-Custom-Code-to-get-activity-dates-in-contact-workflow/m-p/783838" target="_blank" rel="noopener"&gt;Using Custom Code to get activity dates in contact workflow&lt;/A&gt;"&lt;BR /&gt;- The solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&amp;nbsp;on this post "A&lt;A href="https://community.hubspot.com/t5/Dashboards-Reporting/Activity-type-amp-count-by-Company-over-period/m-p/383366" target="_blank" rel="noopener"&gt;ctivity type &amp;amp; count by Company over period&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;I also wanted to invite a couple of subject matter experts to this conversation: Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/313109"&gt;@HFisher7&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148101"&gt;@ChristinaKay&lt;/a&gt;&amp;nbsp;do you have suggestions to help&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/526283"&gt;@ABrandt&lt;/a&gt;, please?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; and have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 09:27:50 GMT</pubDate>
    <dc:creator>BérangèreL</dc:creator>
    <dc:date>2024-01-25T09:27:50Z</dc:date>
    <item>
      <title>Custom code in Workflow to calculate number of emails?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/910817#M2052</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While HubSpot provides a &lt;STRONG&gt;Number of times contacted&lt;/STRONG&gt; field natively, this field is not very granular in that:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It counts all types of activties indiscrimnantly.&lt;/LI&gt;&lt;LI&gt;The number can only grow as its not calculated for a certain time period.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am wondering if its possible in using custom code in workflow, to achive a count of related activties with various conditons (activity type) and date (time frame).&lt;BR /&gt;&lt;BR /&gt;Can the code access all the related activity records to perform such a count?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 13:57:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/910817#M2052</guid>
      <dc:creator>ABrandt</dc:creator>
      <dc:date>2024-01-24T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code in Workflow to calculate number of emails?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/911303#M2057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/526283"&gt;@ABrandt&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Community!&lt;BR /&gt;&lt;BR /&gt;I found for you similar threads that might be of interest:&lt;BR /&gt;&lt;BR /&gt;- The solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/57728"&gt;@KimM&lt;/a&gt;&amp;nbsp;on this post "&lt;A href="https://community.hubspot.com/t5/9881-Operations-Hub/Custom-Code-to-Count-Activities/m-p/792175" target="_blank" rel="noopener"&gt;Custom Code to Count Activities&lt;/A&gt;"&lt;BR /&gt;- The&amp;nbsp;post from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;on this post "&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Using-Custom-Code-to-get-activity-dates-in-contact-workflow/m-p/783838" target="_blank" rel="noopener"&gt;Using Custom Code to get activity dates in contact workflow&lt;/A&gt;"&lt;BR /&gt;- The solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&amp;nbsp;on this post "A&lt;A href="https://community.hubspot.com/t5/Dashboards-Reporting/Activity-type-amp-count-by-Company-over-period/m-p/383366" target="_blank" rel="noopener"&gt;ctivity type &amp;amp; count by Company over period&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;I also wanted to invite a couple of subject matter experts to this conversation: Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/313109"&gt;@HFisher7&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148101"&gt;@ChristinaKay&lt;/a&gt;&amp;nbsp;do you have suggestions to help&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/526283"&gt;@ABrandt&lt;/a&gt;, please?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; and have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:27:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/911303#M2057</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-01-25T09:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code in Workflow to calculate number of emails?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/911687#M2062</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Bérangère,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the reply here and searching for previous solutions.&lt;BR /&gt;It looks like the &lt;A href="https://community.hubspot.com/t5/9881-Operations-Hub/Custom-Code-to-Count-Activities/m-p/792175" target="_blank" rel="noopener"&gt;first solution&lt;/A&gt; you posted migh be the closest to what is needed.&lt;BR /&gt;&lt;BR /&gt;I did not realize that it is possible to use API calls inside a custom code element within a workflow.&lt;BR /&gt;I'll have to try to alter this sample code to what we need and see how it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Alexandre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 18:26:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-code-in-Workflow-to-calculate-number-of-emails/m-p/911687#M2062</guid>
      <dc:creator>ABrandt</dc:creator>
      <dc:date>2024-01-25T18:26:12Z</dc:date>
    </item>
  </channel>
</rss>

