Creating associations
Associations are relationship object types that you can explicitly define in BMC Remedy Action Request System. These objects help you create and manage relationships between forms for various BMC Remedy AR System functions.You can use associations to get related entries using REST API. For more information on using REST API to get associations, see Retrieving-an-association-using-REST-API.
You must create associations when you want to establish a relationship between two or more forms in BMC Remedy Developer Studio. This relationship ensures that all the related form data is archived along with the main form when you run the archive process when you have configured associations to follow for the form which is getting archived. You can create two different types of associations in BMC Remedy Developer Studio.
For information about which associations to choose, see Using-associations.
To create direct associations
- In AR System Navigator, expand serverName > All Objects.
- Right-click Associations, select New Direct Association, and enter the following parameters:
- Select the state of the association. The options are Enabled and Disabled.
- Select the cardinality of the relationship between the primary and secondary form. The options are: One to One and One to Many. For information about type of associations, see Type of associations.
- Select the Primary form for association.
- Select the Secondary form to be associated with the primary form.
Note: Optionally, you can add qualifications using Advanced Options. For more information about qualifications, see Associations qualifications. - Enter the description for the association.
- To enforce associations, select the Enforced check box.
For more information about enforced associations, see Relationships. Map the fields from the primary form to the secondary form using PKFK Field Mapping.
If one or more fields used in key mapping or in qualification are deleted, the server considers that association as invalid and it will not be functional until those fields are created again.- Select File > Save.
- In the Save Association As dialog box, enter the name of the new association and click OK.
To create indirect associations
- In AR System Navigator, expand serverName >All Objects.
- Right-click Associations, select New Indirect Association, and enter the following parameters:
- Select the state of the association. The options are Enabled and Disabled.
- Select the cardinality of the relationship between primary and secondary form. The options are: One to One,One to Many, and Many to Many.
For information about type of associations, see Type of associations. - Select the Primary form for association.
- Select the Secondary form to be associated with the primary form.
- Select the Association form.
Note: Optionally, you can add qualifications using Advanced Options.
For more information about qualifications, see Associations qualifications. - Enter the description for the association.
- To enforce associations, select the Enforced check box.
For more information about enforced associations, see Enforced associations. - Specify the Primary and Association form Field Mapping for comparing values from the two forms.
If one or more fields used in key mapping or in qualification are deleted, the server considers that association as invalid and it is not functional until those fields are created again. - Specify the Secondary and Association form Field Mapping for comparing values from the two forms.
If one or more fields used in key mapping or in qualification are deleted, the server considers that association as invalid and it is not functional until those fields are created again. - Select File > Save.
- In the Save Association As dialog box, enter the name of the new association and click OK.
Related topics