I am trying to extract all notes from my companies HubSpot account. The code returns some things but no notes. This is the code, can anyone tell me why?
client = hubspot.Client.create(access_token="access token which I will not post here")
cool that you're trying to get some data from HubSpot using the Python API library.
You're basically gives you all the note no matter if they were associated with a company or any object for that matter.
What you need to do is request notes by ID individually or a batch read. But you need the IDs of these notes first. To get them from one company you need to call:
Here is important to define what properties you want to access. The content of a note is saved in hs_note_body.
If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it.
cool that you're trying to get some data from HubSpot using the Python API library.
You're basically gives you all the note no matter if they were associated with a company or any object for that matter.
What you need to do is request notes by ID individually or a batch read. But you need the IDs of these notes first. To get them from one company you need to call:
Here is important to define what properties you want to access. The content of a note is saved in hs_note_body.
If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it.