I realise this needs to be a unique property but having done a similar thing with 'Contacts' I figure this should work too? Ideally I need to be able to pass the company name into this call and not the actual company ID.
Nov 9, 202110:27 AM - edited Nov 9, 202110:29 AM
Participant
Read companies using idProperty returning 404
SOLVE
I am having this same issue, and also noticed that it seems to work with contacts. It returns a 404 with HTML content. If you specify a string and don't set an id property you at least get Json with an "object not found" message. This makes me assume setting an id property along with a string is valid and it just isn't finding anything despite the value being valid. I don't know if there is anything with the uniqueness constraint and whether that needs to be enabled for the property, but I can guarantee the values will be unique on my side, and there is only a single company at this time for testing.
Another interesting thing is that idProperty can be set to an invalid property and it doesn't validate it. Due to that, I can't say for sure whether the property is actually being recognized as valid, although it is as I can get that custom property back in the object when retrieving it by the object ID.