Custom Object Association Issue - "Invalid input JSON: Unable to infer object type from"

Aimartinez14
メンバー

Hi there!

 

I have created a new object in our account, but I have missed to associate it with the existing native object "tickets".

 

When I try to make this association through the CRM Custom Objects API - "Create an Association", in this case between "Wares" and "Tickets", it drops me the following error: 

 

"message": "Invalid input JSON: Unable to infer object type from: 3139358", that you can see i the image:

 

 

Aimartinez14_0-1631726510650.png

 

I am trying many possibilities (putting tickets as secondary object, changing the fully qualified name...), but I am not being able to solve this issue.

 

Thanks in advance!

0 いいね!
1件の承認済みベストアンサー
Teun
解決策
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner
Hi!

Most likely, your toObjectTypeId is incorrect. Make a GET request to get your object scheme and share that please, you probably took the wrong value.
I am not sure if you can use 'ticket' as the 'fromObjectTypeId'


Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


元の投稿で解決策を見る

3件の返信 3
Teun
解決策
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner
Hi!

Most likely, your toObjectTypeId is incorrect. Make a GET request to get your object scheme and share that please, you probably took the wrong value.
I am not sure if you can use 'ticket' as the 'fromObjectTypeId'


Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Aimartinez14
メンバー

Yes, you were right!

 

I got the GET command from "Get all schemas" and managed to find the "Ware" custom object fully qualified name. I did this in notepad++, saving the copy-paste as a .json archive. (Im Sales Engineer, I do not know much of programming 😂). 

 

Regarding your comment about 'ticket', I was able to link it with "ticket" for the fromobjecttypeid property.

 

Many many thanks for your help and quick response! 🙌

Teun
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner

Awesome! Happy to help!
Good to know that you can use "ticket" instead of the ID as well!



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.