< Back

Copy-AMWorkflow

Sat Jan 11, 2020 2:31 am

NAME Copy-AMWorkflow



SYNOPSIS

Copies an AutoMate Enterprise workflow.





SYNTAX

Copy-AMWorkflow [-InputObject] <Object> [[-Name] <String>] [[-Folder] <Object>] [[-ConflictAction] <String>]

[[-IdSubstitutions] <Hashtable>] [-IgnoreServerVersionDifference] [[-Connection] <Object>] [<CommonParameters>]





DESCRIPTION

Copy-AMWorkflow can copy a workflow within a server.





PARAMETERS

-InputObject <Object>

The object to copy.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

The new name to set on the object.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Folder <Object>

The folder to place the object in.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ConflictAction <String>

The action to take if a conflicting object is found on the destination server.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IdSubstitutions <Hashtable>

A hashtable containing ID mappings between the source and destination server. The ID from the source server

object is the key, the destination server is the value.

Use this to define mappings of agents/agent groups/folders, or repository objects where the default mapping

actions taken by this workflow are not sufficient.



Required? false

Position? 5

Default value [Hashtable]::new()

Accept pipeline input? false

Accept wildcard characters? false



-IgnoreServerVersionDifference [<SwitchParameter>]

Ignore server version differences when copying between servers. If a task needs to be copied from the source

server to the destination server, Copy-AMTask will still fail.

This could result in an incomplete migration. To avoid this, first use the export/import options in the

Server Management Console for any tasks in the workflow(s) to be copied.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

The server to copy the object to.



Required? false

Position? 6

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



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



PS C:\\># Copy workflow "FTP Files to Company A" to "FTP Files to Company B"



Get-AMWorkflow "FTP Files to Company A" | Copy-AMWorkflow -Name "FTP Files to Company B" -Folder (Get-AMFolder

WORKFLOWS)











RELATED LINKS

https://github.com/AutomatePS/AutomatePS