📚 SAP Business One SDK Help

GetDeposit Method
See Also  Example
pIDepositParams

The key of the deposit to retrieve.

Description

Retrieves a deposit.

The deposit is specified by its key, which is contained in the DepositParams object passed to the method.

Syntax

Visual Basic
Public Function GetDeposit( _
   ByVal pIDepositParams As DepositParams _
) As Deposit

Parameters

pIDepositParams

The key of the deposit to retrieve.

Example

Getting Deposit (C#)Copy Code
SAPbobsCOM.DepositsParams dpsParamsGet = (SAPbobsCOM.DepositsParams)dpService.GetDepositList(); 
if (dpsParamsGet.Count > 0) 

    //You can get the "DepositNumber" one by one. 
    foreach (SAPbobsCOM.DepositParams dpsParamGet in dpsParamsGet) 
    { 
        int dpsNumber = dpsParamGet.DepositNumber; 
        //Get Deposit 
        SAPbobsCOM.Deposit dpsGet = dpService.GetDeposit(dpsParamGet); 
 
       //Any operations as you like. 
    } 
}

See Also