<?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: I can't see one of Email Opt-out field in the Get Contact API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343865#M33679</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you were right.&amp;nbsp; The count was too low to get any data out of field&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;hs_email_optout_8324033.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;I expanded the count to 10000 and this field finally shows up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;--Allan&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 14:00:38 GMT</pubDate>
    <dc:creator>Benchmark_achen</dc:creator>
    <dc:date>2020-06-03T14:00:38Z</dc:date>
    <item>
      <title>I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/342994#M33569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to retrieve some of the Email Opted-Out fields from Hubspot into our database using the following API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout_8324033&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_6236646&amp;amp;&amp;amp;count=100&amp;amp;vidOffset=0" target="_blank" rel="noopener"&gt;https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout_8324033&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_6236646&amp;amp;&amp;amp;count=100&amp;amp;vidOffset=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When run this API, I can see all the fields in the list return with the exception&amp;nbsp;&lt;STRONG&gt;hs_email_optout_8324033&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone let us know what should I do to make this field return as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 18:39:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/342994#M33569</guid>
      <dc:creator>Benchmark_achen</dc:creator>
      <dc:date>2020-05-29T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343132#M33595</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94325"&gt;@Benchmark_achen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Taking a look at request URL, I noticed that there's a double `&amp;amp;&amp;amp;` in the request url parameter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;amp;property=hs_email_optout_6236646&amp;amp;&amp;amp;count=100&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if we remove one of the &amp;amp;, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout_8324033&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_6236646&amp;amp;count=100&amp;amp;vidOffset=0" target="_self"&gt;https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout_8324033&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_6236646&amp;amp;count=100&amp;amp;vidOffset=0&lt;/A&gt;&amp;nbsp; --&amp;gt; this should return property&amp;nbsp;&lt;STRONG&gt;hs_email_optout_8324033.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try and see if this works?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 05:59:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343132#M33595</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-01T05:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343178#M33601</link>
      <description>&lt;P&gt;Nope, that field still doesn't show up.&amp;nbsp; Here is the updated URL:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236624&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_6236646&amp;amp;property=hs_email_optout_6821195&amp;amp;property=hs_email_optout_6974071&amp;amp;property=hs_email_optout_7116314&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_8324033&amp;amp;count=100&amp;amp;vidOffset=0" target="_blank"&gt;https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&amp;amp;property=email&amp;amp;property=hs_content_membership_status&amp;amp;property=hs_email_optout&amp;amp;property=hs_email_optout_6236624&amp;amp;property=hs_email_optout_6236625&amp;amp;property=hs_email_optout_6236646&amp;amp;property=hs_email_optout_6821195&amp;amp;property=hs_email_optout_6974071&amp;amp;property=hs_email_optout_7116314&amp;amp;property=hs_email_optout_7778519&amp;amp;property=hs_email_optout_8324033&amp;amp;count=100&amp;amp;vidOffset=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output (I'm using the ZappySys JSON Source SSIS components to run this URL):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.PNG" style="width: 715px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/27483iAF6BDC3D7AF5E64B/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.PNG" alt="output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:13:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343178#M33601</guid>
      <dc:creator>Benchmark_achen</dc:creator>
      <dc:date>2020-06-01T13:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343704#M33653</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94325"&gt;@Benchmark_achen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is interesting. I'm also seeing the same behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I'll have to work together with our internal team on this and I'll keep you posted here!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:14:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343704#M33653</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-03T01:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343763#M33669</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94325"&gt;@Benchmark_achen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upon digging further into this, I believe I would be able to shed some lights here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why you're not seeing property &lt;EM&gt;&lt;STRONG&gt;hs_email_optout_8324033&lt;/STRONG&gt;&lt;/EM&gt; is likely because on the first page of the return result (&lt;EM&gt;first 100 contacts that you retrieved&lt;/EM&gt;), there's no contact with this property set (&lt;EM&gt;not even set with a "" value&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As such, the property isn't showing up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you'd like to return property even if it's null, you may want to explore the option of using&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank"&gt;CRM API | Contacts&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GET&amp;nbsp;crm/v3/objects/contacts?limit=10&amp;amp;properties=hs_email_optout_8324033%2Cbnid_%2Cemail%2Chs_content_membership_status%2Chs_email_optout%2Chs_email_optout_6236625%2Chs_email_optout_7778519%2Chs_email_optout_6236646&amp;amp;archived=false&amp;amp;hapikey=yourHapikey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should return all properties stated on the query parameter for each contact records even if the property is null.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this works for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 09:06:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343763#M33669</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-03T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: I can't see one of Email Opt-out field in the Get Contact API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343865#M33679</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you were right.&amp;nbsp; The count was too low to get any data out of field&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;hs_email_optout_8324033.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;I expanded the count to 10000 and this field finally shows up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;--Allan&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 14:00:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-can-t-see-one-of-Email-Opt-out-field-in-the-Get-Contact-API/m-p/343865#M33679</guid>
      <dc:creator>Benchmark_achen</dc:creator>
      <dc:date>2020-06-03T14:00:38Z</dc:date>
    </item>
  </channel>
</rss>

