Share via


Create Relationship

Applies To: System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator, System Center 2012 SP1 - Orchestrator

The Create Relationship activity is used to create a relationship between two existing entities. For example, you can create a one-to-many relationship between incidents and customers.

The following published data elements are specific to Create Relationship. Additional published data is generated based on the class that you select when you define the activity. For a list of the data elements published by each class, see Service Manager Published Data.

Create Relationship Published Data

Element Description

Relationship Type

Describes how the source class and target class are related to each other

Source Class

The name of the source class used to build the relationship

Source Object GUID

The unique identifier (GUID) of a single source object used to build the relationship

Target Class

The name of the target class used to build the relationship

Target Object GUID

The unique identifier (GUID) of a single target object used to build the relationship

Object GUID

The unique identifier (GUID) for the object

Number of Objects

The number of objects returned by Create Relationship

Configuring the Create Relationship Activity

To configure the Create Relationship activity

  1. From the Activities pane, drag a Create Relationship activity to the active runbook. Double-click the Create Relationship activity icon.

  2. On the Details tab, in the Properties section, click the ellipsis button (...), and then select the Connection to the Service Manager computer that you want to use for this activity.

  3. Click the ellipsis button (...), and then select the Source Class that you want to use to define this object. For a list of the available classes and their respective fields, see Service Manager Classes, Fields, and Filters.

  4. Click the ellipsis button (...), and then select the Target Class that you want to use to define this object.

  5. Click the ellipsis button (...), and then select the Relationship Type that describes the relationship between the Source Class and the Target Class. The required fields for this relationship appear in the Fields section.

  6. To create the relationship between the items, enter the Source Object GUID and the Target Object GUID. If applicable, to automatically populate the value for the Source Object GUID and the Target Object GUID from the data published by a previous activity in the workflow, right-click the property box, point to Subscribe, and then click Published data. Click the published data element you want to use, and then click OK.

    The published data for each activity depends on the class that was selected when the activity was created. For a list of the data elements published by each class, see Service Manager Published Data. For information about the Common Published Data items, see Published Data in the System Center Orchestrator 2012 Runbook Guide.

  7. For information about the settings on the General and Run Behavior tabs, see Common Configuration Instructions for all Activities.

  8. Click Finish.

Other Activities

The Integration Pack for System Center Service Manager contains the following additional activities: