< Back

Set-AMWorkflowLink

Sat Jan 11, 2020 3:40 am

NAME Set-AMWorkflowLink



SYNOPSIS

Sets a link in a AutoMate Enterprise workflow





SYNTAX

Set-AMWorkflowLink -InputObject <Object> [[-ID] <String>] [-LinkType {Blank | Success | Failure | Result}]

[-ResultType {Default | True | False | Value}] [-Value <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Set-AMWorkflowLink can modify a link in a workflow object.





PARAMETERS

-InputObject <Object>

The object to modify - a workflow or a workflow link.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-ID <String>

The ID of the link to modify (if passing in a workflow).



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LinkType

The type of link to add.



Required? false

Position? named

Default value Success

Accept pipeline input? false

Accept wildcard characters? false



-ResultType

If a Result link type is used, the type of result (true/false/default/value).



Required? false

Position? named

Default value Default

Accept pipeline input? false

Accept wildcard characters? false



-Value <Object>

If a Value result type is used, the value to set.



Required? false

Position? named

Default value

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

WorkflowLink





OUTPUTS



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



PS C:\\># Change the label on an item in a workflow



Get-AMWorkflow "Some Workflow" | Set-AMWorkflowLink -ID "{1103992f-cbbd-44fd-9177-9de31b1070ab}" -Value "123"











RELATED LINKS

https://github.com/AutomatePS/AutomatePS