SetProcess2Relation (Depercated)
Description
Links the process number 2 of the predecessor with the successor.
Optional: Can additionally enter a process description in the process table.
From Business Central version 17 replaced by the function SetProcessLink
Syntax
SetProcess2Relation(SourceRecordVariant: Variant; TargetRecordVariant: Variant)
SetProcess2Relation(SourceRecordVariant: Variant; TargetRecordVariant: Variant; SourceECMDocDef: Record
"ECM Document Definition"
; TargetECMDocDef: Record
"ECM Document Definition"
)
Parameters
SourceRecordVariant
Type: Variant
Is the source data record (predecessor) from which the process number 2 is determined in order to establish a link with a target data record.
If the source record does not yet contain a process number 2, a new process number is created.
Tip: The SourceRecordVariant can be passed as Record, RecordID or RecordRef.
TargetRecordVariant
Type: Variant
Is the target record (successor) that is linked to the source record using the process number 2.
If the target record does not yet contain an process number 2, a new process number 2 is created.
Tip: The TargetRecordVariant can be passed as Record, RecordID or RecordRef.
[Optional] SourceECMDocDef
Type: Record "ECM Document Definition"
Here you can optionally enter the ECM document definition for the source data record in order to create a process in the process table.
More Information: ECM Document Definition - "Assign" FastTab
[Optional] TargetECMDocDef
Type: Record "ECM Document Definition"
Here you can optionally enter the ECM document definition for the target record to create a process in the process table.
More Information: ECM Document Definition - "Assign" FastTab
Return Value:
Remarks:
Example: