APIs & Integrations

martin-nielsen
Member

How do i add a @mention to an engagement note

When creating a NOTE via the engagement endpoint, is it possible to add a mention to the note so the mentioned person receives an email?

I’d like to create a NOTE by posting to http://api.hubapi.com/engagements/v1/engagements and have a mention in the note text.

Can i do this somehow?

He’re are some of the variations i’ve tried to get it to work:

Request body

{
	"engagement": {
        "active": true,
        "ownerId": 11111111,
        "type": "NOTE"
    },
    "associations": {
        "contactIds": [22222222],
        "companyIds": [],
        "ownerIds": [11111111]
    },
	"metadata": {
	    "SEE BELOW"
	}
}

Reference ID:
"body": "Hi @22222222, here's a message for you"

Reference email:
"body": "Hi @e@mail.com, here's a message for you"

Nasty HTML - UI looks right but probably totally wrong :slight_smile: :
"body": "Hi <span data-at-mention="" data-owner-id="2222222">Martin Nielsen</span>, here's a message for you"

My NOTE is created but any attempt to mention someone is just parsed as plain text

Any advice is appreciated.

0 Upvotes
4 Replies 4
DeclanMurphy
Participant

How do i add a @mention to an engagement note

Also need this

 

0 Upvotes
EwanFarry
Participant

How do i add a @mention to an engagement note

Hi Martin,

Did you get an luck with this? Also not finding any way of triggering the email.

Dadams
HubSpot Employee
HubSpot Employee

How do i add a @mention to an engagement note

Hi @martin-nielsen

Currently the emails sent from a mention is something that’s only supported when creating the note in the UI. Having the data-at-mention="" attribute in the HTML of the body will highlight the name, but we don’t have a way to trigger the email through the API right now.

0 Upvotes
martin-nielsen
Member

How do i add a @mention to an engagement note

Hi David,

Is this something that is on the roadmap, or is there another way i can trigger an email to an Owner?