< Back

Add-AMWorkflowItem

Sat Jan 11, 2020 2:27 am

NAME Add-AMWorkflowItem



SYNOPSIS

Adds an item to an AutoMate Enterprise workflow





SYNTAX

Add-AMWorkflowItem -InputObject <Object> -Item <Object> [-Agent <Object>] [-UseLabel] [-Label <String>] [-X

<Int32>] [-Y <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]



Add-AMWorkflowItem -InputObject <Object> -Expression <String> [-UseLabel] [-Label <String>] [-X <Int32>] [-Y

<Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]



Add-AMWorkflowItem -InputObject <Object> -Wait [-UseLabel] [-Label <String>] [-X <Int32>] [-Y <Int32>] [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

Add-AMWorkflowItem can add an item to an AutoMate Enterprise workflow





PARAMETERS

-InputObject <Object>

The workflow to add the item to.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Item <Object>

The item to add to the workflow.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Agent <Object>

The agent to assign the item to in the workflow.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Expression <String>

The expression to set on the evaluation object.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Wait [<SwitchParameter>]

Adds a wait object.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-UseLabel [<SwitchParameter>]

If the item should use the configured label or not.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Label <String>

The label to place on the item (specify -UseLabel) to show the label in the workflow designer.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-X <Int32>

The X (horizontal) location of the new item.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Y <Int32>

The Y (vertical) location of the new item.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

The following AutoMate object types can be modified by this function:

Workflow





OUTPUTS

None





-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Add task "Copy Files" to workflow "FTP Files"



Get-AMWorkflow "FTP Files" | Add-AMWorkflowItem -Item (Get-AMTask "Copy Files")











RELATED LINKS

https://github.com/AutomatePS/AutomatePS