7.3

Table Of Contents
UpdateObject
Changes the state of the specied object in the DataServiceContext to Modied.
Table 138. UpdateObject Activity Input Parameters
Argument Type Description
DataServiceContext RepositoryServiceContext
The DataServiceContext tracking the entity to update.
Instance Object The tracked entity to be assigned to the Modied state.
DynamicOps.Cdk.Activities
The DynamicOps.Cdk.Activities namespace contains advanced activities for IaaS workows.
N The CDK is deprecated beginning with vRealize Automation 7.0. You can use the
vRealize Orchestrator workows to address use cases that you previously addressed with CDK.
ExecutePowerShellScript
Executes a PowerShell script stored in the Model Manager under the specied name.
Before you use the ExecutePowerShellScript activity, you must rst load the script that you want to execute
into the Model Manager using the CloudUtil File-Import command.
Table 139. ExecutePowerShellScript Activity Input Parameters
Argument Type Description
ScriptName String Name in the Model Manager of the script to execute.
ScriptVersion Object (Optional) Version in the Model Manager of the script to
execute. Default is 0.0.
MachineId Guid (Optional) If specied, the machine is loaded and all its
properties are passed to the script.
Arguments Dictionary<string,string> Additional arguments to pass to the script. If MachineId is
specied and there is a machine property with the same
name as an argument (case-insensitive), the value of the
machine property overrides the value of the argument.
PSModules IEnumerable<string> (Optional) Modules loaded into the PowerShell runtime
during command execution.
This option is only available in the Properties pane and not
in the Designer pane.
Table 140. ExecutePowerShellScript Activity Output Parameters
Argument Type Description
Output Collection<PSObject> Output of script if any. Throws exception on error.
If you receive the error message Type PSObject is not defined in the vRealize Automation Designer
console when you are dealing with the output of ExecutePowerShellScript, perform the following steps:
1 Click Imports in the lower left corner of the Designer pane.
2 Select the System.Management.Automation assembly.
Chapter 1 Life Cycle Extensibility
VMware, Inc. 77