<?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: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action) in Data Hub</title>
    <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152192#M3033</link>
    <description>&lt;P class="" data-start="185" data-end="207"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/923951"&gt;@rverheijen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="" data-start="209" data-end="464"&gt;Thanks for providing the &lt;CODE data-start="234" data-end="252"&gt;generate_uuid.py&lt;/CODE&gt; script. I’ve implemented it as a custom code action in a HubSpot workflow, and it executes successfully. I also made sure to define &lt;CODE data-start="385" data-end="397"&gt;short_uuid&lt;/CODE&gt; in the &lt;STRONG data-start="405" data-end="421"&gt;Data Outputs&lt;/STRONG&gt; panel with a &lt;CODE data-start="435" data-end="443"&gt;String&lt;/CODE&gt; type, as instructed.&lt;/P&gt;
&lt;P class="" data-start="466" data-end="727"&gt;However, after the code runs, I’m unable to access the &lt;CODE data-start="521" data-end="533"&gt;short_uuid&lt;/CODE&gt; output in subsequent workflow steps (e.g., when trying to copy it into a contact or deal property). It doesn’t appear in the list of available outputs, even though the code runs without errors.&lt;/P&gt;
&lt;P class="" data-start="729" data-end="849"&gt;I also tried hardcoding the output value to ensure the issue wasn’t with the UUID generation, but the behavior persists.&lt;/P&gt;
&lt;P class="" data-start="851" data-end="1095"&gt;Could you please help verify if the structure of the &lt;CODE data-start="904" data-end="955"&gt;callback({"outputs": {"short_uuid": short_uuid}})&lt;/CODE&gt; response is compatible with the current HubSpot environment, or if any adjustments are needed to make the output accessible in other steps?&lt;/P&gt;
&lt;P class="" data-start="1097" data-end="1126"&gt;Appreciate your help on this.&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 05:54:16 GMT</pubDate>
    <dc:creator>GHubTech</dc:creator>
    <dc:date>2025-05-14T05:54:16Z</dc:date>
    <item>
      <title>Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130673#M2964</link>
      <description>&lt;P&gt;Hey Operations Hub community! &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We've written a "Custom Code" Action we'd like to share that can help you generate short, unique IDs directly within your HubSpot workflows. This can add a layer of unique identification to your data without needing to get bogged down in complex coding.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Why Use Unique, Short IDs?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Think of these IDs as custom labels for your data. They're perfect for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Keeping Track of Customer Data:&lt;/STRONG&gt;&lt;/STRONG&gt; Easily identify and manage specific records within your customer data, making analysis more accurate.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Streamlining Processes:&lt;/STRONG&gt; Create short tracking codes to monitor and track your customer data within your business processes.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Connecting HubSpot to Other Tools:&lt;/STRONG&gt; If you're syncing data between HubSpot and other apps, these IDs act as a reliable link, ensuring everything stays organized.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;General data organization:&lt;/STRONG&gt; If you have any need for a unique identifier in your workflows, this tool can help.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How Does It Work?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We've written a small piece of code that generates 8-character, unique IDs. It's designed to be used directly inside HubSpot's workflow actions, so you don't need to be a coding expert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's How to Add It to Your Workflow:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Get the Code:&lt;/STRONG&gt; You can find the code here: &lt;A href="https://github.com/x-equipment/hubspot_short_uuid_generator" target="_blank" rel="noopener"&gt;hubspot_short_uuid_generator&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Add a "Custom Code" Action:&lt;/STRONG&gt; In your HubSpot workflow, look for the "Custom Code" action and add it.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Copy and Paste:&lt;/STRONG&gt; Copy the code from the GitHub link and paste it into the "Custom Code" action.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Tell HubSpot Where to Store the ID:&lt;/STRONG&gt; You'll need to tell HubSpot where you want to save the generated ID (e.g., a custom property).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Use the ID in Your Workflow:&lt;/STRONG&gt; Now, you can use that unique ID in other steps of your workflow.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Workflow use case:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We recently faced a situation where we needed to share and sync customer data across multiple applications. To ensure consistent customer identification and the ability to update the data across these systems, we required a reliable, cross-domain ID.&lt;/P&gt;&lt;P&gt;We implemented a workflow that generates a unique 8-character ID whenever a new customer is created in HubSpot. This ID is then pushed to all other applications. This ensures that when a customer interacts with any of the applications, we can easily trace their journey and update their information across all platforms. This solution helped us achieve a unified view of our customer data and streamline our data management.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Why 8 Characters?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;8 characters is the sweet spot. It's short enough that you can actually remember it, which is incredibly helpful when you're working with data across different systems. This human-friendly length makes it easier to reference and work with, unlike those long, unwieldy standard UUIDs.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Try It Out!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This code is free to use. Give it a try and let us know how you're using it! We welcome and appreciate all feedback and contributions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 08:17:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130673#M2964</guid>
      <dc:creator>rverheijen</dc:creator>
      <dc:date>2025-04-02T08:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130936#M2966</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/923951"&gt;@rverheijen&lt;/a&gt;&lt;/SPAN&gt;! Welcome to the Community-- happy to have you here &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; Thank you so much for sharing this code! I am sure so many HubSpot customers will find value here!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/221889"&gt;@Ktamir&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10166"&gt;@johnelmer&lt;/a&gt;&lt;/SPAN&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; -- wanted to bring this to your attention in case you may find it useful down the road!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 15:48:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130936#M2966</guid>
      <dc:creator>kennedyp</dc:creator>
      <dc:date>2025-04-02T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130942#M2967</link>
      <description>&lt;P&gt;Thank you for sharing this with me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 15:56:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1130942#M2967</guid>
      <dc:creator>Ktamir</dc:creator>
      <dc:date>2025-04-02T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152192#M3033</link>
      <description>&lt;P class="" data-start="185" data-end="207"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/923951"&gt;@rverheijen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="" data-start="209" data-end="464"&gt;Thanks for providing the &lt;CODE data-start="234" data-end="252"&gt;generate_uuid.py&lt;/CODE&gt; script. I’ve implemented it as a custom code action in a HubSpot workflow, and it executes successfully. I also made sure to define &lt;CODE data-start="385" data-end="397"&gt;short_uuid&lt;/CODE&gt; in the &lt;STRONG data-start="405" data-end="421"&gt;Data Outputs&lt;/STRONG&gt; panel with a &lt;CODE data-start="435" data-end="443"&gt;String&lt;/CODE&gt; type, as instructed.&lt;/P&gt;
&lt;P class="" data-start="466" data-end="727"&gt;However, after the code runs, I’m unable to access the &lt;CODE data-start="521" data-end="533"&gt;short_uuid&lt;/CODE&gt; output in subsequent workflow steps (e.g., when trying to copy it into a contact or deal property). It doesn’t appear in the list of available outputs, even though the code runs without errors.&lt;/P&gt;
&lt;P class="" data-start="729" data-end="849"&gt;I also tried hardcoding the output value to ensure the issue wasn’t with the UUID generation, but the behavior persists.&lt;/P&gt;
&lt;P class="" data-start="851" data-end="1095"&gt;Could you please help verify if the structure of the &lt;CODE data-start="904" data-end="955"&gt;callback({"outputs": {"short_uuid": short_uuid}})&lt;/CODE&gt; response is compatible with the current HubSpot environment, or if any adjustments are needed to make the output accessible in other steps?&lt;/P&gt;
&lt;P class="" data-start="1097" data-end="1126"&gt;Appreciate your help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 05:54:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152192#M3033</guid>
      <dc:creator>GHubTech</dc:creator>
      <dc:date>2025-05-14T05:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152270#M3034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The custom code will only output the generated short UUID. Therefore, you'll need to add a second step to your workflow to edit (update) your record. Attached is an example of a workflow that adds the generated short UUID to a newly created company record.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you're still having trouble, just send me a message.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ciao,&lt;/P&gt;&lt;P&gt;Remco&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-14 at 11-06-52 Company Generate short UUID HubSpot.png" style="width: 354px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/145966i36C8D7AF3FC0E62B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-14 at 11-06-52 Company Generate short UUID HubSpot.png" alt="Screenshot 2025-05-14 at 11-06-52 Company Generate short UUID HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-14 at 11-07-35 Company Generate short UUID HubSpot.png" style="width: 353px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/145967i21C8244D627D0562/image-dimensions/353x350?v=v2" width="353" height="350" role="button" title="Screenshot 2025-05-14 at 11-07-35 Company Generate short UUID HubSpot.png" alt="Screenshot 2025-05-14 at 11-07-35 Company Generate short UUID HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:19:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152270#M3034</guid>
      <dc:creator>rverheijen</dc:creator>
      <dc:date>2025-05-14T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152354#M3035</link>
      <description>&lt;P&gt;And the short_uuid in the 'Choose a value' field could be found under 'Action outputs', 'Custom code'.&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="rverheijen_0-1747223987732.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/145991i4E603894403F1F85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rverheijen_0-1747223987732.png" alt="rverheijen_0-1747223987732.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 12:04:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1152354#M3035</guid>
      <dc:creator>rverheijen</dc:creator>
      <dc:date>2025-05-14T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1153129#M3039</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have messaged you with the variables and screenshot of my implementation. Kindly see. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 21:54:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1153129#M3039</guid>
      <dc:creator>GHubTech</dc:creator>
      <dc:date>2025-05-15T21:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Supercharge Your HubSpot Workflows: Generate Short, Unique IDs (Custom Code Action)</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1153295#M3043</link>
      <description>&lt;P&gt;Replied &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 09:57:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Supercharge-Your-HubSpot-Workflows-Generate-Short-Unique-IDs/m-p/1153295#M3043</guid>
      <dc:creator>rverheijen</dc:creator>
      <dc:date>2025-05-16T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

