Target - Three Way association

Here is a brief explanation of the task: Three way association of the Objects.

Above is flow chart of project requirement and implementation:

Requirement: If One record of Object 1 is associate with another record of Object 2 label as A and the same record of object 1 is associate with another record of Object 3 label as A then we need to associate the record of 2nd Object with record of 3rd Object label as A.

Implementation: Above is flow char of the requirement rule. We can create multiple rules for multiple association labels.. We have created table structure for mapping association between objects.

following is the table structure for adding multiple rules.

Key Object - First Object - First Association Label - Second Object - Second Association Label - New Association Label

Object 1 Object 2 A Object 3 A A

Above is Object Rule Association table structure, in that table we can add multiple rules as our our requirements. We can select the Object and it’s respective labels through Select input.

For Implementation we use HubSpot Server less Functionality using API calls. The select input listing coming dynamically using API calls all the objects of the platform. Once the Key Object and First Object selected the listing of the First Association label is loaded depend upon the selected objects.

Similarly Select Association label list is depend upon Selected key Object and Second Object. And the last i.e New association Label will be apply to the records of First Object and Second Object.

To achieve the goal we request following API calls:

1. Objects List: List of objects of the platform.

2. Labels List: Depend upon the selected objects.

3. Labels Type and Name: Getting label ID, type and it’s name.

4. Capture the records: Selected the object record IDs by matching the association label and it’s type.

5. Assigning New Label: assigning new label to the selected records IDs.

6. Storing data: All the tabular data is stored in the hub DB of the same platform.

7. Convert Internal ID with Proper Labels: Right now all the data is stored with internal IDS of the Hubspot for better understanding of the frontend user we need to convert it into proper labels.

8.Add, Edit and Delete functionally.

This all above functionality is done using Hubspot Module, which is loaded at one of the website page. Client do not want to refresh the same page again and again for processing association functionality. They want to load a javascript file for all the backend object pages (default and custom objects pages.) Which run continuesly for themeselves like workflow.

If any of the contact association change then the change will effect all the respective objects with the use of this Javascript file.

How can I load the Javascript file at the backend pages which run continuesly?

I try public app as well but I am unable to load the file, please help us as soon as possible.

Thanks

Here is flow chart of the process.