I created a custom object but deleted it. After that I try to create it again with different associations, I got below error. It says "p8013920_device" already exists. I already deleted it and I can't find it in my dashboard. Why do I get this error message?
Could you give me some guidence on this? My project is completed blocked since I am not able to create a custom object and I am not able to delete the object either, so that I am not able to create the object.
I got the ID when I run get schema with archived=true. Then I tried to delete/purge it but both failed. After that I can't get the ID from `get` anymore. So the question now is how to get and delete the old object?
I used the NodeJS library of Hubspot and there I have to use to different functions:
hubspotClient.crm.schemas.coreApi.archive(fullyQualifiedName) where fullyQualifiedName = p99688696_car in the Cars Examle in the documentation hubspotClient.crm.schemas.defaultApi.purge(objectTypeId) where objectTypeId = 2-529881 in the Cars Examle in the documentation;
The documentation is (currently) wrong, you can't use the objectType as the parameter for purge. Instead, you need the objectTypeId, which is a value given to you as a property in the JSON data returned when you create the custom schema. It looks like 2-12345678.
There seems to be no way to find out what the objectTypeId is once you've deleted the custom schema. The error when you try to create a new schema with the same name as the deleted one doesn't tell you what the objectTypeId is either, which is a bit of a problem.