📚 SAP Business One SDK Help

GetApprovalStage Method
See Also  Example
pIApprovalStageParams

The ApprovalStageParams of the ApprovalStage you want to get.

Description

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

Syntax

Visual Basic
Public Function GetApprovalStage( _
   ByVal pIApprovalStageParams As ApprovalStageParams _
) As ApprovalStage

Parameters

pIApprovalStageParams

The ApprovalStageParams of the ApprovalStage you want to get.

Example

Get an existing Approval Stage
GetApprovalStage (Visual Basic)Copy Code
Dim oApprovalStageParams As ApprovalStageParams
Dim oApprovalStage As ApprovalStage

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

'Set the code
oApprovalStageParams.Code = 1

'Get an existing Approval Stage
oApprovalStage = oApprovalStagesService.GetApprovalStage(oApprovalStageParams)

See Also