SetProcessRelation

Description

Links the process number 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

AL
SetProcessRelation(SourceRecordVariant: Variant; TargetRecordVariant: Variant)
 
SetProcessRelation(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 is determined in order to establish a link with a target data record.

If the source record does not yet contain a process number, 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.

If the target record does not yet contain an process number, a new process number 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: