Skip to main content

Workflowbody

Properties

NameTypeDescriptionNotes
NameStringThe name of the workflow[optional]
OwnerWorkflowbodyOwner[optional]
DescriptionStringDescription of what the workflow accomplishes[optional]
DefinitionWorkflowdefinition[optional]
EnabledBooleanEnable or disable the workflow. Workflows cannot be created in an enabled state.[optional] [default to $false]
TriggerWorkflowtrigger[optional]

Examples

  • Prepare the resource
$Workflowbody = Initialize-Workflowbody  -Name Send Email `
-Owner null `
-Description Send an email to the identity who's attributes changed. `
-Definition null `
-Enabled false `
-Trigger null
  • Convert the resource to JSON
$Workflowbody | ConvertTo-JSON

[Back to top]