📚 SAP Business One SDK Help

GetCurrentUserMenu Method
See Also  Example

Description

Get the UserMenuItems data collection that represents current user menu.

Syntax

Visual Basic
Public Function GetCurrentUserMenu() As UserMenuItems

Example

Get the current user menu
GetCurrentUserMenu (Visual Basic)Copy Code
Dim oUserMenuItems As UserMenuItems
Dim oUserMenuItem As UserMenuItem

'get Current User Menu
oUserMenuItems = oUserMenuService.GetCurrentUserMenu()

'Get the first menu item
oUserMenuItem = oUserMenuItems.Item(0)

'print the menu name
Debug.WriteLine(oUserMenuItem.Name())

See Also