My Timeline shows incorrect to and from information for an engagement created through the API
My Timeline shows incorrect to and from information for an engagement created through the API
My Sales Dashboard Team Activity view also shows incorrect sender and receiver for this engagement as well.
How the engagement was created:
I am using the authenticated user to create the engagement between two contacts.
Step 1. Create a company, let's say Company1 (with an domain of company1.com)
Step 2. Create a contact, let's say User1 (with email of user1.company1.com and associated company (that was created above))
Step 3. Create an engagement where:
contactIds is the vid of User1
companyIds is the vid of Company1
metadata:
from email = user1.company1.com
to email = user2.company2.com
HubSpot engagements are built to track interactions between HubSpot users and contact/company/deal records. They aren't built to track interactions between contacts, or between contact/company/deal records. Even when including two external email addresses in the to: and from: fields, HubSpot will always show the activity as it relates to it's owner. In your case, since you didn't include any owner, the activity should appear as "New logged email with {{recipient}}"
It's not currently possible to change this behavior; if you're looking to track emails between contacts, logging them in this way is likely the best option. I can see the use case you're describing though; if you have the inclination, I would encourage you to check out the Ideas Forum on the HubSpot Community. There, you can create a post including your use case that product and other customers can see.