<?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: Can't populate business/industry field on list api in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223757#M2653</link>
    <description>&lt;P&gt;Hi Isaac, I am doing the following:&lt;/P&gt;
&lt;P&gt;url = f'&lt;A href="https://api.hubapi.com/contacts/v1/lists/%7Blistid%7D/add?hapikey=%7Bhapikey%7D" rel="nofollow noopener"&gt;https://api.hubapi.com/contacts/v1/lists/{listid}/add?hapikey={hapikey}&lt;/A&gt;'&lt;BR /&gt;
tmp = json.loads('''{"vids": &lt;SPAN class="chcklst-box fa fa-square-o fa-fw"&gt;&lt;/SPAN&gt;}''')&lt;BR /&gt;
tmp['vids'] = vids&lt;BR /&gt;
headers = {'Content-type': 'application/json'}&lt;BR /&gt;
r = requests.post(url, data=json.dumps(tmp),headers=headers,timeout=timeout)&lt;/P&gt;
&lt;P&gt;Here is my payload:&lt;/P&gt;
&lt;P&gt;{'properties': [{'property': 'email', 'value': 'j3465894@b.com'}, {'property': 'firstname', 'value': 'Jo'}, {'property': 'lastname', 'value': 'e'}, {'property': 'company', 'value': 'test_co'}, {'property': 'phone', 'value': '1234567899'}, {'property': 'job_title', 'value': 'Chief Technology Officer'}, {'property': 'business_industry', 'value': 'startup'}]}&lt;/P&gt;
&lt;P&gt;I get the following with my 200 response:&lt;BR /&gt;
&amp;lt;CIMultiDictProxy('Date': 'Thu, 15 Nov 2018 23:17:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Trace': '2B3473891F1A74FF9406F6FDBE475B6BB4DB8AB737000000000000000000', 'X-HubSpot-RateLimit-Daily': '40000', 'X-HubSpot-RateLimit-Daily-Remaining': '39991', 'X-HubSpot-RateLimit-Secondly': '10', 'X-HubSpot-RateLimit-Secondly-Remaining': '8', 'Vary': 'Accept-Encoding', 'Vary': 'Accept-Encoding', 'Content-Encoding': 'gzip', 'Access-Control-Allow-Credentials': 'false', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Expect-CT': 'max-age=604800, report-uri="&lt;A href="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" rel="nofollow noopener"&gt;https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct&lt;/A&gt;"', 'Server': 'cloudflare', 'CF-RAY': '472082453a2-LAX')&amp;gt;&lt;/P&gt;
&lt;P&gt;Do you see any problems?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 16:48:18 GMT</pubDate>
    <dc:creator>joeinsurancetho</dc:creator>
    <dc:date>2018-11-20T16:48:18Z</dc:date>
    <item>
      <title>Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223755#M2651</link>
      <description>&lt;P&gt;Hi, I am currently populating name and email by using the hubspot api.  I would also like to update the business industry field. I have added the name "business_industry" to my API call, is there another name or method I should use to populate this field when adding to a list? I have attempted to update a list with this field but it does not add the entry.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:16:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223755#M2651</guid>
      <dc:creator>joeinsurancetho</dc:creator>
      <dc:date>2018-11-19T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223756#M2652</link>
      <description>&lt;P&gt;Welcome, &lt;A class="mention" href="https://community.hubspot.com/u/joeinsurancethought"&gt;@joeinsurancethought&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;To clarify, are you trying to update the &lt;CODE&gt;business_industry&lt;/CODE&gt; property values of contacts with a Contacts API endpoint &lt;A href="https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update"&gt;like this&lt;/A&gt; or modify a contact list's filters using a Contact Lists API endpoint &lt;A href="https://developers.hubspot.com/docs/methods/lists/update_list"&gt;like this&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;Either way, could you share the exact request URL you are using, the payload you are sending, and the response code and message you receive? (Please remove any authenticating information like API keys.)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:28:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223756#M2652</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-11-20T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223757#M2653</link>
      <description>&lt;P&gt;Hi Isaac, I am doing the following:&lt;/P&gt;
&lt;P&gt;url = f'&lt;A href="https://api.hubapi.com/contacts/v1/lists/%7Blistid%7D/add?hapikey=%7Bhapikey%7D" rel="nofollow noopener"&gt;https://api.hubapi.com/contacts/v1/lists/{listid}/add?hapikey={hapikey}&lt;/A&gt;'&lt;BR /&gt;
tmp = json.loads('''{"vids": &lt;SPAN class="chcklst-box fa fa-square-o fa-fw"&gt;&lt;/SPAN&gt;}''')&lt;BR /&gt;
tmp['vids'] = vids&lt;BR /&gt;
headers = {'Content-type': 'application/json'}&lt;BR /&gt;
r = requests.post(url, data=json.dumps(tmp),headers=headers,timeout=timeout)&lt;/P&gt;
&lt;P&gt;Here is my payload:&lt;/P&gt;
&lt;P&gt;{'properties': [{'property': 'email', 'value': 'j3465894@b.com'}, {'property': 'firstname', 'value': 'Jo'}, {'property': 'lastname', 'value': 'e'}, {'property': 'company', 'value': 'test_co'}, {'property': 'phone', 'value': '1234567899'}, {'property': 'job_title', 'value': 'Chief Technology Officer'}, {'property': 'business_industry', 'value': 'startup'}]}&lt;/P&gt;
&lt;P&gt;I get the following with my 200 response:&lt;BR /&gt;
&amp;lt;CIMultiDictProxy('Date': 'Thu, 15 Nov 2018 23:17:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Trace': '2B3473891F1A74FF9406F6FDBE475B6BB4DB8AB737000000000000000000', 'X-HubSpot-RateLimit-Daily': '40000', 'X-HubSpot-RateLimit-Daily-Remaining': '39991', 'X-HubSpot-RateLimit-Secondly': '10', 'X-HubSpot-RateLimit-Secondly-Remaining': '8', 'Vary': 'Accept-Encoding', 'Vary': 'Accept-Encoding', 'Content-Encoding': 'gzip', 'Access-Control-Allow-Credentials': 'false', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Expect-CT': 'max-age=604800, report-uri="&lt;A href="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" rel="nofollow noopener"&gt;https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct&lt;/A&gt;"', 'Server': 'cloudflare', 'CF-RAY': '472082453a2-LAX')&amp;gt;&lt;/P&gt;
&lt;P&gt;Do you see any problems?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:48:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223757#M2653</guid>
      <dc:creator>joeinsurancetho</dc:creator>
      <dc:date>2018-11-20T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223758#M2654</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/joeinsurancethought"&gt;@joeinsurancethought&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/methods/lists/add_contact_to_list"&gt;That endpoint&lt;/A&gt; only adds contacts &lt;EM&gt;which have already been created&lt;/EM&gt; to static lists. As such, the payload should look something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;{
  "vids": [
    123456
  ],
  "emails": [
    "j3465894@b.com"
  ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The payload you're sending looks like what you would send to &lt;A href="https://developers.hubspot.com/docs/methods/contacts/create_contact"&gt;this Contacts API endpoint&lt;/A&gt; to create a contact. Once you create the contact, you can use either the &lt;CODE&gt;vid&lt;/CODE&gt; or &lt;CODE&gt;email&lt;/CODE&gt; value to add them to a list.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:40:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223758#M2654</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-11-20T21:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223759#M2655</link>
      <description>&lt;P&gt;I'm actually doing 2 passes. I first add to hubpsot and then I add to a specific list like this:&lt;/P&gt;
&lt;P&gt;//Initial add to hubspot contacts&lt;BR /&gt;
url = f'&lt;A href="https://api.hubapi.com/contacts/v1/contact/?hapikey=%7Bhapikey%7D" rel="nofollow noopener"&gt;https://api.hubapi.com/contacts/v1/contact/?hapikey={hapikey}&lt;/A&gt;'&lt;BR /&gt;
r = requests.post(url, data=json.dumps(tmp),timeout=timeout)&lt;/P&gt;
&lt;P&gt;//then I add to a specific list&lt;BR /&gt;
url = f'&lt;A href="https://api.hubapi.com/contacts/v1/lists/%7Blistid%7D/add?hapikey=%7Bhapikey%7D" rel="nofollow noopener"&gt;https://api.hubapi.com/contacts/v1/lists/{listid}/add?hapikey={hapikey}&lt;/A&gt;'&lt;BR /&gt;
tmp = json.loads('''{"vids": &lt;SPAN class="chcklst-box fa fa-square-o fa-fw"&gt;&lt;/SPAN&gt;}''')&lt;BR /&gt;
tmp['vids'] = vids&lt;BR /&gt;
headers = {'Content-type': 'application/json'}&lt;BR /&gt;
r = requests.post(url, data=json.dumps(tmp),headers=headers,timeout=timeout)&lt;/P&gt;
&lt;P&gt;Given the payload above, is there anything that would stop the business_industry from being populated?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 23:06:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223759#M2655</guid>
      <dc:creator>joeinsurancetho</dc:creator>
      <dc:date>2018-11-20T23:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223760#M2656</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/joeinsurancethought"&gt;@joeinsurancethought&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I'm still uncertain of your goal. To restate my question from yesterday, are you trying to set the contacts' &lt;CODE&gt;business_industry&lt;/CODE&gt; property values or modify a lists filters or visible columns?&lt;/P&gt;
&lt;P&gt;If you are calling &lt;CODE&gt;https://api.hubapi.com/contacts/v1/lists/{listid}/add&lt;/CODE&gt;, then you must be trying to add a contact to a &lt;EM&gt;static&lt;/EM&gt; list. This has nothing to do with their &lt;CODE&gt;business_industry&lt;/CODE&gt; property value, however.&lt;/P&gt;
&lt;P&gt;Can you clarify?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 21:25:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223760#M2656</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-11-21T21:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223761#M2657</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/isaac_takushi"&gt;@Isaac_Takushi&lt;/A&gt;, my goal is to have the business_industry field populated by whatever means it takes in hubspot.  I don't know my way around the hubpsot so forgive me if I don't know the exact route to do that.&lt;/P&gt;
&lt;P&gt;AFAIK api_hubapi_com/contacts/v1/lists/{listid}/add adds a contact to a static list.  I do see the field business_industry in the list with id 415 so I'm not sure why you say it has nothing to do with it.&lt;/P&gt;
&lt;P&gt;I first add the contact to the contacts in general with this:&lt;BR /&gt;
api_hubapi_com/contacts/v1/contact/&lt;/P&gt;
&lt;P&gt;Is this the correct sequence?&lt;/P&gt;
&lt;P&gt;How can I populate the business_industry field?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:28:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223761#M2657</guid>
      <dc:creator>joeinsurancetho</dc:creator>
      <dc:date>2018-11-23T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223762#M2658</link>
      <description>&lt;P&gt;hi &lt;A class="mention" href="https://community.hubspot.com/u/isaac_takushi"&gt;@Isaac_Takushi&lt;/A&gt;, I haven't heard back from you.  Is there any update or can you transfer this to somone else?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:30:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223762#M2658</guid>
      <dc:creator>joeinsurancetho</dc:creator>
      <dc:date>2018-11-26T16:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't populate business/industry field on list api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223763#M2659</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hubspot.com/u/joeinsurancethought"&gt;@joeinsurancethought&lt;/A&gt;, I appreciate your patience while I was out of office over the Thanksgiving holiday.&lt;/P&gt;
&lt;P&gt;In HubSpot, lists are simply collections of contact records. Lists do not have their own properties; rather, they make it easier to view and act on the property values of the &lt;EM&gt;contacts they contain&lt;/EM&gt;. If you're looking at a list and "see" a field for the &lt;CODE&gt;business_industry&lt;/CODE&gt; property, what you're actually looking at is just a column label. The values in this column reflect each contact's value for that property. You cannot add column labels to lists via any API — each user must add them via &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/lists/how-to-customize-list-columns"&gt;this method&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;While a column for a property like &lt;CODE&gt;business_industry&lt;/CODE&gt; may not appear the first time a user looks at a list, it doesn't affect the list's functionality. The list still contains the contacts which were either manually (static list) or automatically (active list) added and all of the contacts will either have a &lt;CODE&gt;business_industry&lt;/CODE&gt; property value or they won't. Any user can surface the values contacts have by clicking &lt;STRONG&gt;Actions&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Edit columns&lt;/STRONG&gt; and checking the box for the &lt;CODE&gt;business_industry&lt;/CODE&gt; property.&lt;/P&gt;
&lt;P&gt;Now, if you're asking how to get the &lt;CODE&gt;business_industry&lt;/CODE&gt; property values &lt;EM&gt;onto&lt;/EM&gt; contact records so that you can then view them in a list, you would use &lt;A href="https://developers.hubspot.com/docs/methods/contacts/create_contact"&gt;this Contacts API endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Again, this would "populate" the &lt;CODE&gt;business_industry&lt;/CODE&gt; value for a contact, but it might not appear as a list column unless you go through &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/lists/how-to-customize-list-columns"&gt;these steps&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 19:31:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-populate-business-industry-field-on-list-api/m-p/223763#M2659</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-11-26T19:31:27Z</dc:date>
    </item>
  </channel>
</rss>

