{ "status": "COMPLETE", "results": [], "numErrors": 1, "errors": [ { "status": "error", "category": "OBJECT_NOT_FOUND", "message": "Could not get some COMPANY objects, they may be deleted or not exist. Check that ids are valid.", "context": { "ids": [ "aspencot.co.uk" ] } } ], "startedAt": "2024-02-26T18:49:55.761Z", "completedAt": "2024-02-26T18:49:55.790Z" }
Now I checked the "hasUniqueValue" property of the domain property of the customer and it is presently set to false. Reading a different post here on the forums, it appears that in order for me to use this endpoint with that 'idProperty' within the JSON request that this attribute needs to be set to true. (I checked the object using the properties API).
HOWEVER, I can successfully use the same batch read contact API endpoint below with the email id property where the "hasUniqueValue" is false and get a successful response when passing the email address in the inputs array.
If my only possible way of doing this is to set the 'hasUniqueValue' attribute to true, what are the existing rammifications to my data already captured in the 60K company records I have in HubSpot?
@GRajput Thank you for your two examples but I need the ability to find the Company object (hs_object_id) by passing the domain name to the batch read; not the other way around. And, when I try by using the aforementioned JSON structure where I am passing the domain and setting the idProperty : "domain". I get nothing.