std.GetDocVariant

This job creates a new variant of the selected document.

1. Input Parameters

Name Type Required Description

sDocVer

STRING

Yes

Number of the new variant

bTransferPlannedRetention

BOOL

Yes

1 = planned retention time is transferred

dwParentID

INT

Yes

ID of the object

dwObjectType

INT

Yes

Type of the selected object

dwMainType

INT

Yes

Main type of the new variant

bAddFiles

INT

Yes

1 = new files (if sent) are added instead of replacing the old ones

bAddFront

INT

Yes

1 = new files are added at the front

2. Output Parameters

Name Type Dependency Description

dwVariantID

INT

ID of the newly created variant

3. Return Value

(INT): 0 = Job successful, otherwise error code.