📚 SAP Business One SDK Help

Get Method
See Also  Example
pIISDParams

The key of the ISD document to retrieve.

Description

Retrieves an ISD document.

The ISD document is specified by its key, which is contained in the ISDParams object passed to the method.

Syntax

Visual Basic
Public Function Get( _
   ByVal pIISDParams As ISDParams _
) As ISDDocument

Parameters

pIISDParams

The key of the ISD document to retrieve.

Example

C#Copy Code
            CompanyService oCompanyService = oCompany.GetCompanyService(); 
            ISDDocumentsService oDocService = oCompanyService.GetBusinessService(ServiceTypes.ISDDocumentsService); 
            ISDParams oDocParams = oDocService.GetDataInterface(ISDDocumentsServiceDataInterfaces.isd_ISDParams); 
            oDocParams.DocumentEntry = 1; 
            ISDDocument oDoc = oDocService.Get(oDocParams); 
            if (oDoc != null) 
            { 
 
                ISDDocStatusEnum status = oDoc.DocumentStatus; 
                if (status == ISDDocStatusEnum.isd_Open) 
                { 
                    MessageBox.Show("ISD #" + oDoc.DocumentNumber + " now is in open status. ", "Message"); 
                } 
            }

See Also