Get Note Body

Hey all!

I’m attempting to get a note’s body using hubl. Something like this:

{% set notes = crm_associations(company.id, "HUBSPOT_DEFINED", 7, "limit=100&orderBy=hs_createdate&hs_engagement_type=NOTE", "body", false) %}

The issue being I’m not sure that the body is accessible this wway, but if it is I’m not able to find the property to request.

Any insights?

have you even done this @dennisedson ?

It’s accessibly via the API, like so:

{
 "engagement": {
 "id": xxxxxxx,
 "portalId": xxxxxxxx,
 "active": true,
 "createdAt": 1631220277687,
 "lastUpdated": 1631220277687,
 "createdBy": xxxxx,
 "modifiedBy": xxxxxx,
 "ownerId": xxxxx,
 "type": "NOTE",
 "timestamp": 1631220277687,
 "source": "CRM_UI",
 "sourceId": "kevin@xxxxxx",
 "allAccessibleTeamIds": [],
 "bodyPreview": "Test Company Note 2",
 "queueMembershipIds": [],
 "bodyPreviewIsTruncated": false,
 "bodyPreviewHtml": "<html>\n <head></head>\n <body>\n <p>Test Company Note 2</p>\n </body>\n</html>",
 "gdprDeleted": false
 },
 "associations": {
 "contactIds": [],
 "companyIds": [
 xxxxxx
 ],
 "dealIds": [],
 "ownerIds": [],
 "workflowIds": [],
 "ticketIds": [],
 "contentIds": [],
 "quoteIds": []
 },
 "attachments": [],
 "metadata": {
 "body": "<p>Test Company Note 2</p>"
 }
}

But I really would like to avoid yet another API call…

@Kevin-C ,

As far as I can tell, you can’t with hubl, yet. I am asking around. In my test, I wasn’t able to pull any properties from an engagement. Were you?

Enagements is on track to be an actual object(s) soon so I wonder if that will remedy this. Not very helpful now, but…

@dennisedson

IT EXISTS!!!

Witha little help from my friend @russellbenzing 's repo I was able to find the property “hs_note_body”!

Russell you’re the most help even when you’re out of the office lol!

@russellbenzing needs to get on the forums more often :winking_face_with_tongue: