Surname (NotesName - JavaScript)

Read-only. The surname component of a hierarchical name (S=).

Defined in

NotesName

Syntax

getSurname() : string

Usage

This property returns an empty string for a hierarchical name with no surname component.

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

A name created through Domino® administration does not contain a surname component.

Examples

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