Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

DIVGET^XUSRB2(): Get Divisions for Current User

Reference Type: Controlled Subscription, Category: User, ICR#: 4055

Description

The DIVGET^XUSRB2 API retrieves the list of divisions for the current user.

(This was developed as a Broker Remote Procedure Call [RPC] and all RPCs have as the first parameter the return/output parameter.)

Format

  DIVGET^XUSRB2(ret,ien)

Input Parameters

ret:

(required) Name of the subscripted return array. In every API that is used as an RPC, the first parameter is the return array.

ien:

(required) The DUZ or user name of the user for whom you are getting the division list.

Output Parameters

ret():

Returns a subscripted output array. If + of the value at the first level 0 subscript of the return value is false, then the user does not have any divisions from which to select.

Otherwise, for each division that a user has, a node is present in the return value, at the first subscript level, starting at zero (0) and incrementing from there. The value of the node is three pieces:

  ien^division name^station #