Create Object
Applies To: System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator, System Center 2012 SP1 - Orchestrator
The Create Object is used to create a new Service Manager record associated with a specified class. This activity includes support for incidents and changes.
The following published data element is specific to Create Object. Additional published data is generated based on the class that you selected when you defined the object. For a list of the 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:
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 are creating.
Create Object Published Data
Element | Description |
---|---|
Number of Objects |
The number of objects returned by the Create Object activity |
Configuring the Create Object Activity
To configure the Create Object Activity
From the Activities pane, drag a Create Object activity to the active runbook. Double-click the Create Object activity.
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.
Click the ellipsis button (...), and then select the Class that you want to use to define this object. The fields that are required to define the object are displayed in the Fields section. For a list of the available classes and their respective fields, see Service Manager Classes, Fields, and Filters.
Assign a value to each of the required fields. If applicable, to automatically populate the value 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. To view additional elements, select Show Common Published Data.
The published data for this 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.
To use additional fields, click Select Optional Fields. In the Add/Remove Property dialog box, select the properties you want to apply to this activity from the Available list, and then click the right arrow button (>>). The properties appear in the Selected list. To remove a property from the Selected list, click the property, and then click the left arrow button (<<). Click OK.
Assign a value to each of the fields. Or, to automatically populate the value for the additional fields from the data published by a previous activity in the workflow, right-click the field box, point to Subscribe, and then click Published data. Click the published data element you want to use, and then click OK.
For information about the settings on the General and Run Behavior tabs, see Common Configuration Instructions for all Activities.
Click Finish.
Other Activities
The Integration Pack for System Center Service Manager contains the following additional activities: