CopyBatchType

When creating a new project, you can use batch types created in other projects. This will save time and prevent configuration errors. You can use the CopyBatchType command to copy batches from one project to another. The command will overwrite any batch types having the same names as the batch types that you want to copy.
Note: A batch type may reference a Document Definition. If there is no such Document Definition in the target project, a warning message will be displayed and the reference to the missing Document Definition will be removed.

Parameters

/Source Required

The source project from which batch types should be copied.

You can specify either the full path to a local project or the path to a project stored on a server.

/Target Required

The target project where you want to add or replace batch types.

You can specify either the full path to a local project or the path to a project stored on a server.

/Name Optional

Batch type name.

If a batch type with this name already exists in the target project, the batch type will be overwritten. If no batch type name is specified, all the batch types will be copied.

/TargetName Optional

New batch type name.

If it is not set, the original name will be used.

/DocumentDefinitions Optional A list of document definitions referenced by the new batch type.
/Classified Optional The batch classifier ID referenced by the new batch type.
/SourceU Optional

User name.

If no user name is specified, Windows authentication will be used.

/SourceP Optional Password.
/SourceTenant Optional The tenant with the source project.
/TargetU Optional

User name.

If no user name is specified, Windows authentication will be used.

/TargetP Optional Password.
/TargetTenant Optional The tenant with the target project.
/AlwaysAdd Flag If this parameter is set, a new batch type is added regardless of whether the given batch type exists or not.

Example of use:
CopyBatchType /Source="https://FCSRV/1/SingleEntryPoint" /Target=D:\Projects\SingleEntryPoint /SourceU=user /SourceP=password /Name="Batch type"

10.11.2020 12:08:03


Please leave your feedback about this article