Open topic with navigation

# _RELATIONSHIP

The `_RELATIONSHIP` (or `_REL`) element instructs the connector to find relationships both from and to the current object. This element is effectively the same as using both `_FROM_RELATIONSHIP` and `_TO_RELATIONSHIP`.

Attribute | Description
--- | ---
`relationship_pattern` (or `rel_pattern`) | A comma-separated list of strings to restrict the types of relationships that are retrieved. Only relationships with a type matching one or more of the strings are retrieved. The wildcards * and ? can be used.
`type_pattern` | A comma-separated list of type names. Only relationships connected to business objects with a type matching one or more of the names are retrieved. The wildcards * and ? can be used.
`node_name` | The name of the metadata field that is created for each relationship. If `node_name` is not specified the child metadata is added at the current depth in the document metadata. This attribute only adds structure to the metadata and does not affect the metadata itself.
`obj_where` | A string to restrict the relationships that are retrieved, based on the properties of the related object. Type a string using the query language used by Enovia.
`rel_where` | A string to restrict the relationships that are retrieved, based on the properties of the relationship. Type a string using the query language used by Enovia.
Other attributes | Other attributes that are not reserved are output as metadata in the resulting document.

## Example

For examples that show how to use this element, see the examples for the `_TO_RELATIONSHIP` element (_TO_RELATIONSHIP).

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm