dazzling-processor-50311
06/09/2025, 6:49 PMconst contactId = workflow.createContactID;
const noteContent = `
:test_tube: Qualification:
⢠Industry: ${workflow.business_industry}
⢠New Products: ${workflow.develops_new_products}
⢠Spend: ${workflow.annual_spend}
⢠Claimed Before: ${workflow.claim}
⢠State: ${workflow.primary_us_state}
⢠Challenge: ${workflow.challenge}
`;
const payload = {
properties: {
hs_note_body: noteContent.trim(),
hs_timestamp: Date.now() // Important: Required
},
associations: [
{
to: { id: contactId },
types: [
{
associationCategory: "HUBSPOT_DEFINED",
associationTypeId: 202
}
]
}
]
};
workflow.noteRequestBodyStr = JSON.stringify(payload);
return { success: true };
and then the Make API Call
https://cdn.discordapp.com/attachments/1381706707193037002/1381706707948015666/image.png?ex=684bc9e6&is=684a7866&hm=6554b2de97021511efe02beff2f46c09ca3606c10e4bb082d2178ac6c0798412&prehistoric-airplane-85682
06/09/2025, 6:52 PMdazzling-processor-50311
06/10/2025, 9:00 AMprehistoric-airplane-85682
06/10/2025, 1:21 PMdazzling-processor-50311
06/10/2025, 6:30 PMprehistoric-airplane-85682
06/10/2025, 6:45 PMdazzling-processor-50311
06/10/2025, 6:47 PMdazzling-processor-50311
06/10/2025, 7:02 PMprehistoric-airplane-85682
06/10/2025, 7:57 PMdazzling-processor-50311
06/11/2025, 6:30 PMdazzling-processor-50311
06/11/2025, 6:30 PMdazzling-processor-50311
06/11/2025, 6:31 PMdazzling-processor-50311
06/11/2025, 6:32 PMendpoint:"https://api.hubapi.com/crm/v3/objects/notes"
method:"POST"
data:"{"properties":{"hs_note_body":"stuff","hs_timestamp":1749666522958},"associations":[{"to":{"id":"128073896732"},"types":[{"associationCategory":"HUBSPOT_DEFINED","associationTypeId":202}]}]}"dazzling-processor-50311
06/11/2025, 6:39 PMdazzling-processor-50311
06/11/2025, 6:42 PM[envyro/hubspot] 'Make API Call' exception {"message":"request to https://api.hubapi.comhttps//api.hubapi.com/crm/v3/objects/notes failed, reason: getaddrinfo ENOTFOUND
so I Just had to write
/crm/v3/objects/notes as Endpoint onlyprehistoric-airplane-85682
06/11/2025, 7:42 PM