Hi all im new to this community and wanted to as something about how to import notes:
im using above guides to try to import notes and getting response but its not updating the notes on my contacts
import requestsimport jsonurl = "https://api.hubapi.com/crm/v3/objects/notes/batch/create"headers = { 'Content-Type': "application/json", 'Authorization': 'Bearer "bearer here" ' }payload = json.dumps( { "inputs": [ { "id": "id here", "properties": { "hs_note_body": "Test 4", "hubspot_owner_id": "id here " } } ] });response = requests.request("POST", url, data=payload, headers=headers)print(response.text)
One thing that i tried and works is the legacy engagement which is straight forward and working. my problem here is i dont know how to post a unique notes per contacts.
https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement
import requestsimport jsonurl_notes = "https://api.hubapi.com/engagements/v1/engagements"payload = json.dumps({ "engagement": { "active": 'true', "ownerId": 111, "type": "NOTE" }, "associations": { "contactIds": ['222','333'] }, "metadata": { "body": "test3" }});headers = { 'Content-Type': "application/json", 'Authorization': 'Bearer "bearer here" ' }response = requests.request("POST", url_notes, data=payload, headers=headers)print(response.text)
Im not sure if there are better ways aside from what i tried above. but my main goal is to post on activity on each contacts.

