• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Get Note Body

Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

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 ?

0 Upvotes
1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

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

View solution in original post

4 Replies 4
dennisedson
Community Manager
Community Manager

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


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More

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

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

dennisedson
Community Manager
Community Manager

@russellbenzing needs to get on the forums more often 😜


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More

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

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…

0 Upvotes