# Filter notes

**URL:** <https://community.hubspot.com/t/filter-notes/80245>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [April 28, 2023, 7:28am UTC](https://community.hubspot.com/t/filter-notes/80245 "2023-04-28T07:28:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YouAssa95](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@YouAssa95](https://community.hubspot.com/u/YouAssa95)\
**Post date:** [April 28, 2023, 7:28am UTC](https://community.hubspot.com/t/filter-notes/80245/1 "2023-04-28T07:28:40Z")

</div>

Hello,  
I’m having a strange behavior with the [notes search endpoint](https://developers.hubspot.com/docs/api/crm/search) .  
My request : POST  
url : [https://api.hubapi.com/crm/v3/objects/notes/search](https://api.hubapi.com/crm/v3/objects/notes/search)  
body :

```lia-code-sample
{
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "my_external_id",
 "operator": "EQ",
 "value": "69405"
 }
 ]
 }
 ],
 "properties": [
 "my_external_id"
 ]
}

```

I keep getting :

```lia-code-sample
{
 "total": 0,
 "results": []
}

```

Even though I know ( by fetching all notes that there is a note record with this exact external id value), and when filtering by the hs\_note\_body I got results.  
Any thoughts plz on what might be the prb here ?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [April 28, 2023, 8:39am UTC](https://community.hubspot.com/t/filter-notes/80245/2 "2023-04-28T08:39:54Z")

</div>

Hello @YouAssa95

It’s possible that the `my_external_id` property is not a searchable property in the `notes` object in HubSpot. The `hs_note_body` property might be searchable, which is why you are getting results when you filter by that property.

To check if `my_external_id` is searchable, you can go to the HubSpot API documentation and check the list of searchable properties for the `notes` object.

If `my_external_id` is not searchable, you can try using the `metadata` endpoint to get the HubSpot internal ID for the note with the external ID you’re searching for, and then use that internal ID in your subsequent API calls.

Here’s an example of how to get the HubSpot internal ID for a note with a specific external ID using the metadata endpoint:

```lia-code-sample
GET https://api.hubapi.com/crm/v3/objects/notes/metadata?includePropertyVersions=true&property=my_external_id

```

This should return metadata for the `my_external_id` property, including the HubSpot internal ID for the note object. You can then use that internal ID in your subsequent API calls to retrieve or update the note.

---

<div class="post-metadata">

**Author:** ![YouAssa95](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@YouAssa95](https://community.hubspot.com/u/YouAssa95)\
**Post date:** [April 28, 2023, 9:18am UTC](https://community.hubspot.com/t/filter-notes/80245/3 "2023-04-28T09:18:26Z")

</div>

Hello ,  
Thank you for your answer.  
Indeed by fetching the note shcemas my\_external\_id property doesn’t appear in the searchable properties. However using another Operator like HAS\_PROPERTY works just fine.  
And I just did another test with other values and apparently the search endpoint works ( except for one value right now).  
I didn’t quite get your answer’s second part, do you have a link for a documentation about it plz ? ( I’m referring to : `https://api.hubapi.com/crm/v3/objects/notes/metadata?includePropertyVersions=true&property=my_external_id`

).  
Thanks!

@himanshurauthan
