📚 SAP Business One SDK Help

RemoveApprovalStage Method
See Also  Example
pIApprovalStageParams

Specifies the ApprovalStageParams identification key combination (Code and Name) of the Approval stage you want to remove.

Description

Remove an ApprovalStage from the ApprovalStages data collection by it ApprovalStageParams.

Syntax

Visual Basic
Public Sub RemoveApprovalStage( _
   ByVal pIApprovalStageParams As ApprovalStageParams _
) 

Parameters

pIApprovalStageParams

Specifies the ApprovalStageParams identification key combination (Code and Name) of the Approval stage you want to remove.

Example

Remove an existing Approval Stage
RemoveApprovalStage (Visual Basic)Copy Code
Dim oApprovalStageParams As ApprovalStageParams

'Get new Approval Stage Params
oApprovalStageParams = oApprovalStagesService.GetDataInterface(ApprovalStagesServiceDataInterfaces.assdiApprovalStageParams)

'Set the code
oApprovalStageParams.Code = 15

'Remove an existing Approval Stage
Call oApprovalStagesService.RemoveApprovalStage(oApprovalStageParams)

See Also