CMS Development

Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Get Note Body

SOLVE

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 ?

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Get Note Body

SOLVE

@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!

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

4 Replies 4
dennisedson
HubSpot Product Team
HubSpot Product Team

Get Note Body

SOLVE

@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....

0 Upvotes
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Get Note Body

SOLVE

@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!

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
dennisedson
HubSpot Product Team
HubSpot Product Team

Get Note Body

SOLVE

@russellbenzing needs to get on the forums more often 😜

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Get Note Body

SOLVE

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 Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes