Setting up a many-to-many relationship with Custom Objects
Hi everyone,
We have a Salesforce instance in which all our Accounts are tagged for segmentation purposes. In Salesforce, each account has one Tag Assignment, which is related zero or more Tags. I'm assuming this constitutes a many-to-many relationship: many Accounts are related to many Tags through Tag Assignments, which serves as a 'Bridge Object'.
We would like to synchronize the Tags in our Salesforce instance with Marketo, either manually (Import Custom Object Data) or automatically (API). Therefore, I'm attempting to replicate the data model with Custom Objects in Marketo. Unfortunately, I can't seem to figure out what the best approach is.
I have taken the following steps:
- Create a Custom Object 'Tag'
- Create a 'Tag ID' field and set it as deduplication field
- Create a 'Tag Name' field
- Create a Custom Object 'Tag Assignment'
- Create a 'Tag Assignment ID' field and set is as deduplication field
- Create a 'Company ID' field, set is as link field and link it to the 'Company ID' field on the Company Object
- Create a 'Tag ID' field, set it as link field and link it to the 'Tag ID' field on the Tag Object
At first glance, this approach seems to work. But when I import Custom Object Data, not all person records with the same Company ID receive a tag. It seems as if it only relates the Custom Object to the first 'Person' is sees, while it should be related to the 'Company'.
Does anyone have experience setting up something like this? It would be very helpful to get some additional pointers.