Related Assocations Type

Hello,

When fetching an object with its assocations (e.g. “/crm/v3/objects/deals?associations=contacts,companies”), in the response, each object with assocations has an associations proporty in the form the below:

"associations": {
 "companies": {
 "results": [
 {
 "id": "6019286140",
 "type": "deal_to_company"
 }
 ]
 },
 "contacts": {
 "results": [
 {
 "id": "4001",
 "type": "deal_to_contact"
 }
 ]
 }
}

Under this property are sub-properties for the various types of associated objects (e.g. associations.companies, associations.contacts).
Inside each of these sub-properties, will all results have the same type value? For example, above under assocations.companies, will all result objects always have a type of “deal_to_company”?

Thanks!

@IntegrationDev

Yes, these will represent the associations of the objects and will be consistent.

You can see all of the available association types by using the associations endpoint

/crm/v3/associations/{fromObjectType}/{toObjectType}/types

Do note that there is a newer version of associations in beta which extends the functionality which is worth exploring as well``

Thank you, @dennisedson!