I'm trying to pull a list of Deals using a custom property. I'm using this endpoint:
POST/crm/v3/objects/deals/batch/read
The documentation is too vague but states that one can "Read a batch of deals by internal ID, or unique property values". I'm trying to pass a list of values for a custom property in order to get a list of deals that match that property value. Here's what I'm passing:
{
"completedAt": "2021-04-13T13:24:04.105Z",
"errors": [
{
"category": "OBJECT_NOT_FOUND",
"context": {
"ids": [
"51350",
"51349"
]
},
"message": "Could not get some DEAL objects, they may be deleted or not exist. Check that ids are valid.",
"status": "error"
}
],
"numErrors": 1,
"results": [],
"startedAt": "2021-04-13T13:24:04.088Z",
"status": "COMPLETE"
}
Note that 'vboe_quote_id' is my custom property but has nothing to do with HubSpot quotes. So, don't let that mislead you. 🙂
In my print screen below I have a custom property called "avtalsnummer" and I want to recieve a specific deal with a specific avtalsnummer. If you want to add more search querys or get more results the "filters" is an array and can easly be added with more filters using comas.
In my print screen below I have a custom property called "avtalsnummer" and I want to recieve a specific deal with a specific avtalsnummer. If you want to add more search querys or get more results the "filters" is an array and can easly be added with more filters using comas.
Thanks! I ended up using the same search endpoint but using some other properties to narrow down the results. Then, I filter futher in code to get what I need.
However, I might modify my code to do what you're suggesting as the result set size is likely to grow as my client uses HubSpot more and more.