getParentId (NotesXspDocument - JavaScript)

Gets the note ID of the parent of the current document.

Syntax

getParentID() : string
Return value Description
string The ID which can be up to 8 characters.

Usage

The note ID identifies the document within one database. It is not the universal ID which uniquely identifies a document across replicas.

A document has a parent when it is a response document.

This method returns an empty string if the current document does not have a parent.

Examples

This code gets the target document for an Open simple action.
return document1.getParentId()
This is the condition for a group that precedes the above event.
document1.isResponse()