📚 SAP Business One SDK Help

GetOpenApprovalRequestList Method
See Also  Example

Description

Returns the open approval requests of the logged-on user as authorizer.

Syntax

Visual Basic
Public Function GetOpenApprovalRequestList() As ApprovalRequestsParams

Return Type

Returns the ApprovalRequestsParams object, a DataCollection of ApprovalRequestParams data structures.

Example

Getting the Open Approval Request List (C#)Copy Code
ApprovalRequestsService approvalSrv = MainModule.oCmpSrv.GetBusinessService(ServiceTypes.ApprovalRequestsService) As ApprovalRequestsService; 
ApprovalRequestsParams oList = approvalSrv.GetOpenApprovalRequestList(); 
String result = ""; 
 
foreach (ApprovalRequestParams oParams In oList) 

  result += oParams.Code + " " + oParams.Remarks + "\n"; 

Interaction.MsgBox(result, (Microsoft.VisualBasic.MsgBoxStyle)(0), null);

See Also