Hello,
I am trying to get Engagement - Email using HS Api.
However, I would like to only get engagements created by a specific Agent, is this possible? I have tried adding owner_id and hubspot_owner_id and hs_owner_id as param but nothing worked.
Hello,
I am trying to get Engagement - Email using HS Api.
However, I would like to only get engagements created by a specific Agent, is this possible? I have tried adding owner_id and hubspot_owner_id and hs_owner_id as param but nothing worked.
Hey, @DTyburek
Welcome to our community! Have you tried using the Search API for this one? It allows you to search Engagements, use a filter like EQ, and include your specific properties in the request body.
Have fun building! — Jaycee
This did the trick, thank you!
ie, for some future readers reference
{
"limit": 50,
"properties": ["hs_email_subject", "hs_email_text", "hubspot_owner_id", "hs_email_direction", "hs_email_to_email"],
"filterGroups":[
{
"filters":[
{
"propertyName": "hubspot_owner_id",
"operator": "EQ",
"value": "123456"
}
]
}
],
"sorts": [
{
"propertyName": "hs_createdate",
"direction": "DESCENDING"
}
]
}