We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 6, 2021 1:27 PM
We've tried searching associations.contact "NOT_HAS_PROPERTY", but it returns an error.
Are there any other ways to do this?
Jan 28, 2022 12:39 PM
Hey,
I have a similar problem, Could you resolve it?
Thanks
Dec 6, 2021 2:13 PM
This is for tickets to contacts, specifically. Could that be the issue?
Dec 6, 2021 2:05 PM
Hi @linkfuse and @dennisedson ,
with the current payload:
{
"filters": [
{
"propertyName": "associations.contact",
"operator": "NOT_HAS_PROPERTY"
}
]
}
I've got also a 400 error.
{
"status": "error",
"message": "There was a problem with the request.",
"correlationId": "be038525-2741-4d36-8bef-ae151c4c820c"
}
You do also a POST request @dennisedson ?
Regards Ronald
Dec 6, 2021 2:09 PM
@RMones 👀
This is a screenshot of my postman request (collapsed the results array)
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Dec 6, 2021 2:17 PM
Hi @dennisedson ,
Yes your example is working. But when change deals to tickets or a custom object ID, I've got a 400 http error..
Regards,
Ronald
Dec 6, 2021 2:18 PM
Wow. So I somehow found the only one that works! What are the odds....
I do not have a good answer for this. I will do some research to see if this is working as designed.
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Dec 8, 2021 5:12 PM
Hi! Were you able to determine if this is working as designed?
Thanks for your help!
Dec 8, 2021 5:14 PM
Working on it! Promise to drop the answer here when I find out!
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Dec 6, 2021 2:21 PM
It does seem to make sense as trying to get to contacts or tickets through workflows / the UI doesn't work either (we tried to set a property if the association was missing).
Contacts have associated deals as criterion, and tickets have associated companies, but not contacts as criterion.
Dec 6, 2021 2:19 PM
Awesome! Thx 🙂
Dec 6, 2021 1:59 PM
Hmm... ours was part of a filterGroup. That must be the difference - we were searching for another known property as well, but we probably don't need to get that granular.
We'll try it again without the group.
Thanks!
Dec 6, 2021 1:53 PM
How are you structuring your body?
I sent this request and it seems to work:
{
"filters": [
{
"propertyName": "associations.contact",
"operator": "NOT_HAS_PROPERTY"
}
]
}
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |