<?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: Support for a One-to-Many mapping for a Contact Property not restricted to a list of allowed val in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/325116#M31368</link>
    <description>&lt;P&gt;Jack, I like what you're proposing, this is how I've been storing serialized data on Iterable and simliar platforms that use JSON to package up the data.&lt;BR /&gt;&lt;BR /&gt;How does the search function/segmentation within Hubspot deal with this serialized data? I'm ok with the need to update the entire field, but how do I pull out or reference those individual "subjects" - I.e. segment on Subjects: Option 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 20:59:44 GMT</pubDate>
    <dc:creator>JonathanNail</dc:creator>
    <dc:date>2020-03-10T20:59:44Z</dc:date>
    <item>
      <title>Support for a One-to-Many mapping for a Contact Property not restricted to a list of allowed values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/311688#M29715</link>
      <description>&lt;P&gt;We want a Contact to have a property "subjects" that will contain a list of subjects they the Contact is interested in, (i.e. Accounting, Computer Graphics, Product Design, etc.). The list of allowed values for "subjects" is about 300 items long and constantly updating, so it doesn't seem feasible to use an "enumeration" data type to represent it. The only solution I see is to save the value as multi-line text, where each line represents a "subject" they are interested in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a better way to accomplish this One-to-Many mapping?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:16:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/311688#M29715</guid>
      <dc:creator>FrankYu</dc:creator>
      <dc:date>2020-01-13T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Support for a One-to-Many mapping for a Contact Property not restricted to a list of allowed val</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/311757#M29725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/115349"&gt;@FrankYu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a common issue I've seen come up over the past few years. The multi-line text field approach is probably your best bet if the data is constantly changing. You could create a custom property called "Subjects" and ensure it is set as a "multi-line text" property. You could then "&lt;A href="https://developers.hubspot.com/docs/methods/contacts/create_or_update" target="_self"&gt;create or update a contact&lt;/A&gt;" and pass values as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "properties": [
    {
      "property": "email",
      "value": "testcontact001@hubspot.com"
    },
    {
      "property": "firstname",
      "value": "Jack"
    },
    {
      "property": "subjects",
      "value": "Option 1, Option 2, Option 3, Option 4"
    }
 ] 
}&lt;/PRE&gt;
&lt;P&gt;Once the data is passed to HubSpot you would then be free to segment using lists or enroll into workflows based on the data contained in this property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Be mindful that if you choose to move forward with the above option if you pass a new value in to the "subjects" property&amp;nbsp; at a later stage it won't be appended. It will replace all existing values&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp; Therefore you'd need to ensure you pass through a request like this in order to update a contact accordingly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "properties": [
    {
      "property": "subjects",
      "value": "Option 1, Option 2, Option 3, Option 4, &lt;STRONG&gt;New Subject Here&lt;/STRONG&gt;"
    }
 ] 
}&lt;/PRE&gt;
&lt;P&gt;I hope this helps,&lt;/P&gt;
&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:28:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/311757#M29725</guid>
      <dc:creator>jackcoldrick</dc:creator>
      <dc:date>2020-01-14T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Support for a One-to-Many mapping for a Contact Property not restricted to a list of allowed val</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/325116#M31368</link>
      <description>&lt;P&gt;Jack, I like what you're proposing, this is how I've been storing serialized data on Iterable and simliar platforms that use JSON to package up the data.&lt;BR /&gt;&lt;BR /&gt;How does the search function/segmentation within Hubspot deal with this serialized data? I'm ok with the need to update the entire field, but how do I pull out or reference those individual "subjects" - I.e. segment on Subjects: Option 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 20:59:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/325116#M31368</guid>
      <dc:creator>JonathanNail</dc:creator>
      <dc:date>2020-03-10T20:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Support for a One-to-Many mapping for a Contact Property not restricted to a list of allowed val</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/326395#M31543</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123613"&gt;@JonathanNail&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are referring to segmentation within the HubSpot tool itself this won't be a problem. You can filter by a multiline text property by using the "contains" filter and simply enter the options/strings you wish to segment by. See below:&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="Screen Shot 2020-03-18 at 9.25.56 AM.png" style="width: 557px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/24956i95CA12C63A1D1B68/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-03-18 at 9.25.56 AM.png" alt="Screen Shot 2020-03-18 at 9.25.56 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally you are able to use our CRM Search API to extract this information programmatically. More information on this can be found here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs-beta/crm/search" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs-beta/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps,&lt;/P&gt;
&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 09:26:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Support-for-a-One-to-Many-mapping-for-a-Contact-Property-not/m-p/326395#M31543</guid>
      <dc:creator>jackcoldrick</dc:creator>
      <dc:date>2020-03-18T09:26:51Z</dc:date>
    </item>
  </channel>
</rss>

