Should I use "email" type engagements for general replies on Ticket system?
SOLVE
I like the Tickets center at HubSpot, and I'm trying to recreate something similar. Users have a way to see all their tickets, and click on one to see the conversation stream. For sending a reply and conversing on this tickets page, should these engagements be of type "email"? I'm not seeing any other type that would make sense, but wanted to make sure I'm not missing something. Thanks!
Should I use "email" type engagements for general replies on Ticket system?
SOLVE
Hi @kakigori, yes, you should use the engagements API, create the email using the type EMAIL per the docs, and associate the engagement with a ticket in the associations object by using the ticket ID you're looking to associate with. Example:
{
"engagement": {
"active": true,
"ownerId": 1,
"type": "EMAIL",
"timestamp": 1544196558552
},
"associations": {
"contactIds": [32551],
"companyIds": [ ],
"ticketIds": [3338323],
"dealIds": [ ],
"ownerIds": [ ]
},
"metadata": {
"from": {
"email": "email_address@email.com",
"firstName": "Connor",
"lastName": "Barley"
},
"to": [
{
"email": "Derek Test <test@test123.com>"
}
],
"cc": [],
"bcc": [],
"subject": "This is the subject of the email",
"html": "<div>This is the body of the email</div><div><br></div><div>-Me</div>",
"text": "This is the body of the email\n\n-Me"
}
}
Should I use "email" type engagements for general replies on Ticket system?
SOLVE
Hi @kakigori, yes, you should use the engagements API, create the email using the type EMAIL per the docs, and associate the engagement with a ticket in the associations object by using the ticket ID you're looking to associate with. Example:
{
"engagement": {
"active": true,
"ownerId": 1,
"type": "EMAIL",
"timestamp": 1544196558552
},
"associations": {
"contactIds": [32551],
"companyIds": [ ],
"ticketIds": [3338323],
"dealIds": [ ],
"ownerIds": [ ]
},
"metadata": {
"from": {
"email": "email_address@email.com",
"firstName": "Connor",
"lastName": "Barley"
},
"to": [
{
"email": "Derek Test <test@test123.com>"
}
],
"cc": [],
"bcc": [],
"subject": "This is the subject of the email",
"html": "<div>This is the body of the email</div><div><br></div><div>-Me</div>",
"text": "This is the body of the email\n\n-Me"
}
}