<?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: Set a string as enum? How to configure this? in Data Hub</title>
    <link>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1163549#M3101</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/824832" target="_blank"&gt;@OJ_ONT&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your post. I think you are on the right track.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest using Postman to see the list of options for your dropdown property and identify the difference between the visible label and the required internalValue.&lt;/P&gt;&lt;P&gt;"options": [
 &amp;nbsp;{
 &amp;nbsp; &amp;nbsp;"label": "United States",
 &amp;nbsp; &amp;nbsp;"value": "united_states", &amp;nbsp;// &amp;lt;-- This is the value you need to find and use
 &amp;nbsp; &amp;nbsp;"displayOrder": 2
 &amp;nbsp;},
 &amp;nbsp;{
 &amp;nbsp; &amp;nbsp;"label": "Mexico",
 &amp;nbsp; &amp;nbsp;"value": "mexico", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;lt;-- This is the value you need to find and use
 &amp;nbsp; &amp;nbsp;"displayOrder": 1
 &amp;nbsp;}
]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will find the&amp;nbsp;options array. The label is the text you see in HubSpot, and the value is the internal name you need to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can look into a Custom Coded Workflow Action to make the same request and&amp;nbsp;loop through the list of options from the API response and find the one where the label matches your input string.&lt;/P&gt;&lt;P&gt;Basically, from the single option that matches, extract the value (e.g., united_states) and then the action should output that extracted value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd either post back here or start a new post once you have your custom coded action set up so our community members can give you more specific feedback.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun testing! — Jaycee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 21:14:26 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2025-06-25T21:14:26Z</dc:date>
    <item>
      <title>Set a string as enum? How to configure this?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1163344#M3100</link>
      <description>&lt;P&gt;I'm verifying a country as a string is allowed in our other country field (drop down) before I attempt to write it. This is to support the logic applied in salesforce to pass a lead to the right sales queue. My script fetches the property options from the schema API. I would like to avoid making a second API call to update the property due to the high volume that can go through this workflow.&lt;BR /&gt;&lt;BR /&gt;My enumeration drop down is a list of countries. It is super long and I want to avoid configuring this in the interface especially as it changes from time to time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I understand the difference in the data types. Is there anything I can do in the code to set the enumeration in the output so that I can update the property in a standard workflow action? e.g. output the integer of the displayorder... would that work?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 11:51:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1163344#M3100</guid>
      <dc:creator>OJ_ONT</dc:creator>
      <dc:date>2025-06-11T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set a string as enum? How to configure this?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1163549#M3101</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/824832" target="_blank"&gt;@OJ_ONT&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your post. I think you are on the right track.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest using Postman to see the list of options for your dropdown property and identify the difference between the visible label and the required internalValue.&lt;/P&gt;&lt;P&gt;"options": [
 &amp;nbsp;{
 &amp;nbsp; &amp;nbsp;"label": "United States",
 &amp;nbsp; &amp;nbsp;"value": "united_states", &amp;nbsp;// &amp;lt;-- This is the value you need to find and use
 &amp;nbsp; &amp;nbsp;"displayOrder": 2
 &amp;nbsp;},
 &amp;nbsp;{
 &amp;nbsp; &amp;nbsp;"label": "Mexico",
 &amp;nbsp; &amp;nbsp;"value": "mexico", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;lt;-- This is the value you need to find and use
 &amp;nbsp; &amp;nbsp;"displayOrder": 1
 &amp;nbsp;}
]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will find the&amp;nbsp;options array. The label is the text you see in HubSpot, and the value is the internal name you need to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can look into a Custom Coded Workflow Action to make the same request and&amp;nbsp;loop through the list of options from the API response and find the one where the label matches your input string.&lt;/P&gt;&lt;P&gt;Basically, from the single option that matches, extract the value (e.g., united_states) and then the action should output that extracted value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd either post back here or start a new post once you have your custom coded action set up so our community members can give you more specific feedback.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun testing! — Jaycee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 21:14:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1163549#M3101</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-06-25T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set a string as enum? How to configure this?</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1169689#M3125</link>
      <description>&lt;P&gt;Ahhhh... ok. I feel foolish, but also a little misled by the user interface.&lt;BR /&gt;I thought I had to define the options for the enumeration in the UI (using the 'Enumeration options' text box). In the case of countries that could mean manually typing in &amp;gt;190 country names.&lt;BR /&gt;&lt;BR /&gt;In reality I can just select enumeration and give it a name and then output to the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ... the obvious next question is: what is the use case for the box for entering the Enumeration options?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:48:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Set-a-string-as-enum-How-to-configure-this/m-p/1169689#M3125</guid>
      <dc:creator>OJ_ONT</dc:creator>
      <dc:date>2025-06-26T13:48:24Z</dc:date>
    </item>
  </channel>
</rss>

