<?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: Filters in properties endpoint in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694219#M57005</link>
    <description>&lt;P&gt;Oops, meant to write property['formField'] is True&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:58:47 GMT</pubDate>
    <dc:creator>klloyd__1</dc:creator>
    <dc:date>2022-09-16T13:58:47Z</dc:date>
    <item>
      <title>Filters in properties endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/692507#M56890</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to get specific properties by filter&amp;nbsp;&lt;SPAN&gt;formField=true and&amp;nbsp;group(or groupName)=&lt;/SPAN&gt;&lt;SPAN&gt;companyinformation.&lt;BR /&gt;&lt;/SPAN&gt;But /crm/v3/properties/Companies/search not working, so maybe somebody have an idea. but api solutions only, because I currently use&amp;nbsp; after request handling.&lt;/P&gt;&lt;P&gt;my current request&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;GET {{HUBSPOT}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/crm/v3/properties/Companies?properties=name&amp;amp;properties=label&amp;amp;properties=fieldType&amp;amp;properties=groupName&amp;amp;archived=false&amp;amp;properties=formField&amp;amp;group=companyinformation&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 08:51:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/692507#M56890</guid>
      <dc:creator>AAbdullayev</dc:creator>
      <dc:date>2022-09-13T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filters in properties endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/693882#M56984</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/447503"&gt;@AAbdullayev&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to the community! Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/14568"&gt;@Ismail&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/381293"&gt;@klloyd__1&lt;/a&gt;, do&amp;nbsp;you have any tips on how&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/447503"&gt;@AAbdullayev&lt;/a&gt;&amp;nbsp;can structure their request?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:54:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/693882#M56984</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-09-15T17:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filters in properties endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694217#M57004</link>
      <description>&lt;P&gt;Thanks for the tag&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/447503"&gt;@AAbdullayev&lt;/a&gt;&amp;nbsp;it does not appear that there is a property group filter for the properties endpoint.&amp;nbsp; You can either get specific properties (like you're doing now), or use the get all company properties endpoint (essentially the same thing just without ?properties= parameters).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would recommend is use the get all properties endpoint, then loop through the results to return properties where groupname=companyinformation and formField = true.&amp;nbsp; I always use Python code, and to do that I would do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests
import json
url = "https://api.hubapi.com/crm/v3/properties/comapnies"
payload = {}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
response_json = response.json()
all_properties = response_json['results']
companyinformationprops = []
for property in all_properties:
    if property['groupName'] == "companyinformation" and property['formField'] is False:
        companyinformationprops.append(property)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will leave you with a list of just the properties from the company information group and are set as form fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree it would be better if these filters could be added directly to the URL request, but this is my best workaround.&amp;nbsp; Please let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:57:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694217#M57004</guid>
      <dc:creator>klloyd__1</dc:creator>
      <dc:date>2022-09-16T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filters in properties endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694219#M57005</link>
      <description>&lt;P&gt;Oops, meant to write property['formField'] is True&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:58:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694219#M57005</guid>
      <dc:creator>klloyd__1</dc:creator>
      <dc:date>2022-09-16T13:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filters in properties endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694704#M57042</link>
      <description>&lt;P&gt;okay, thanks. Now is working like that.&lt;BR /&gt;I was hoping there would be a filter &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 07:09:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filters-in-properties-endpoint/m-p/694704#M57042</guid>
      <dc:creator>AAbdullayev</dc:creator>
      <dc:date>2022-09-19T07:09:59Z</dc:date>
    </item>
  </channel>
</rss>

