Common (NotesName - JavaScript)

Read-only. The common name component (CN=) of a hierarchical name.

Defined in

NotesName

Syntax

getCommon() : string

Usage

This property returns a flat name as-is.

This property returns the LocalPart component of an Internet name.

Examples

This computed field returns John B Goode.
var nam:NotesName = session.createName(
	"CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US");
return nam.getCommon();
This computed field returns jbgoode.
var nam:NotesName = session.createName(
	"jbgoode@us.acme.com");
return nam.getCommon();
This computed field returns the canonical hierarchical name of the current user.
return session.getUserNameObject().getCommon();
This computed field also returns the canonical hierarchical name of the current user.
return session.getCommonUserName();