APIs & Integrations

Developers
Member

Cannot create association definition with itself

Hi, not so long time ago I was able to create associations between to entries of the same custom object type. I was testing a functionality using it on my Sandbox account, and now that its time to implement this change I cannot do it on my Production account. Why I'm not able to create the association between two custom objects of the same type anymore? Is there a workaround?

I still have the associations types working on the Sandbox and I'm able to create new associations with it.

I'm trying to create it with :/crm/v3/schemas/{objectTypeId}/associations
example body: 

 

 



 

{
"fromObjectTypeId": "2-3444025",
"toObjectTypeId": "2-3444025",
"name": "project_to_project"
}

 


Response: 

 

{
"status": "error",
    "message": "Cannot create association definition with itself: 2-6286287",
    "correlationId": "0566b846-bc06-4a67-9955-50e2abf16480",
    "context": {
        "objectTypeId": [
            "2-6286287"
        ]
    },
    "category": "VALIDATION_ERROR",
    "subCategory": "ObjectSchemaError.CANNOT_ASSOCIATE_OBJECT_TYPE_WITH_ITSELF"
}

 

 

0 Upvotes
2 Replies 2
MiaSrebrnjak
Community Manager
Community Manager

Cannot create association definition with itself

Hi @Developers,

 

Thank you for reaching out to the Community! 

I wanted to tag in a couple of subject matter experts to see if they have any advice: 

hi @stefen & @louischausse, do you have any tips for @Developers? Thank you!

 

Cheers
Mia, Community team 




Wusstest du, dass es auch eine DACH-Community gibt?
Nimm an regionalen Unterhaltungen teil, indem du deine Spracheinstellungen änderst


Did you know that the Community is available in other languages?
Join regional conversations by
changing your language settings


FYI: I am on my sabbatical leave until July 8 2024.
0 Upvotes
ADemenet
Member

Cannot create association definition with itself

Hello!

Any update on this?

 

I am trying to implement it too. Would be great to hear from you!

0 Upvotes