OrgUnit2 (NotesName - JavaScript)

Read-only. The second organizational unit of a hierarchical name (OU=).

Defined in

NotesName

Syntax

getOrgUnit2() : string

Usage

This property returns an empty string for a hierarchical name with no organizational unit 2 component.

This property returns an empty string for an Internet or flat name.

Organizational unit 2 is the second rightmost organizational unit in the name.

Examples

This computed field returns Sales.
var nam:NotesName = session.createName(
	"CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US");
return nam.getOrgUnit2();