APIs & Integrations

tclark228
Member

What causes email engagement metadata `to` field to be empty?

Hi, I have an integration with Hubspot syncing over email engagements and I have a recent customer who is missing their `to` field in their emails. I'm not able to see a way to make this occur within the app so I'm wondering if anyone knows what makes an email engagement get into this state. The `from` and body/html fields are populated as expected so this isn't a case of missing scope

 

{
    "engagement": {
        "id": 1XXXXXXX,
        "portalId": 4XXXXXX,
        "active": true,
        "createdAt": 1XXX455282144,
        "lastUpdated": 1XXX455282144,
        "type": "EMAIL",
        "timestamp": 1XXX455277134,
        "allAccessibleTeamIds": [],
        "bodyPreview": "Some text",
        "queueMembershipIds": [],
        "bodyPreviewIsTruncated": false,
        "bodyPreviewHtml": "<html>\n <head></head>\n <body>\n <div>\n Some text \n </div>\n </body>\n</html>",
        "gdprDeleted": false
    },
    "associations": {
        "contactIds": [
            2XXXX001
        ],
        "companyIds": [
            7XXXX9175X
        ],
        "dealIds": [
            7XXXX5968X,
            7XXXX0541X
        ],
        "ownerIds": [],
        "workflowIds": [],
        "ticketIds": [],
        "contentIds": [],
        "quoteIds": []
    },
    "attachments": [],
    "metadata": {
        "from": {
            "email": "sample@email.com",
            "firstName": "Sample",
            "lastName": "Emailer"
        },
        "to": [],
        "cc": [],
        "bcc": [],
        "sender": {},
        "subject": "Some subject",
        "html": "<div>Some text</div>",
        "emailSendEventId": {},
        "validationSkipped": [],
        "attachedVideoOpened": false,
        "attachedVideoWatched": false,
        "pendingInlineImageIds": []
    }
}

 

As you can see I have the from info but no `to` info

 

Appreciate any help you can provide!

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

What causes email engagement metadata `to` field to be empty?

Hi, @tclark228  👋  Thanks for reaching out.

 

Can you provide any additional details, code snippets, or screenshots to help provide our community with more info, please? This helps our community members better understand your issue and positions them to be able to give you better suggestions and feedback.

 

Thank you! – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
tclark228
Member

What causes email engagement metadata `to` field to be empty?

Hi Jaycee, I've updated my post to reflect what I'm seeing in the API

 

Thanks!

0 Upvotes