Create Related Object
Important
This version of Orchestrator has reached the end of support. We recommend you to upgrade to Orchestrator 2022.
The Create Related Object activity is used to create a new Service Manager object that is related to other existing objects either by membership or by a hosted relationship.
The following published data elements are specific to Create Related Object. Additional published data is generated based on the class that you select when you define the activity. For a list of data elements published by each class, see Service Manager Published Data.
Certain classes contain a mandatory ID property, which requires a GUID. Generating a GUID is the responsibility of the workflow author, and can be generated using a .NET scripting activity with the following procedure.
Create a class with an ID property
Create a Run .NET Script activity using the following method:
$GUID = \[guid\]::NewGUID()
.On the Published Data tab, define the GUID variable using the following settings:
- Name: guid
- Type: String
- Variable: GUID
When the .NET Script Activity runs, it will generate a GUID that you can subscribe to in the ID property of the activity you're creating.
Create Related Object 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 |
System Center Object GUID | The unique identifier (GUID) for the object |
Number of Objects | The number of objects returned by Create Related Object |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for