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
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.
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!
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.
Sep 19, 2022 8:16 AM - edited Sep 20, 2022 3:28 AM
We had similar issues - we could get Deals using associations.contact but not vice versa. This thread helped us working it out. Actually, you can use the filter in Hubsport (in the relevant screen for your case: Deals, Tickets, Contacts, etc.), looking for "Associated X" and check its options. If there is such a filter, and it has an option "is known/unknown" it means you can use the NOT_HAS_PROPERTY (or HAS). If not, try to work out with what options there are.
In our case of finding Contacts without associated Deals the only relevant filter is "num_associated_deals", and it has an option (in Hubspot app) "is known" so one can check for "NOT_HAS_PROPERTY".
Hope it helps.
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"
}
]
}