getEmbeddedObject (NotesRichTextItem - JavaScript)

Given the name of a file attachment, embedded object, or object link in a rich text item, returns the corresponding embedded object.

Defined in

NotesRichTextItem

Syntax

getEmbeddedObject(name:string) : NotesEmbeddedObject
Parameter Description
name The name of the object to find.
  • To find a file attachment, specify its file name. Specify just the file name not the full path.
  • To find an embedded object or object link, use the name of the object or link as it appears in the InfoBox, or as designated in the embedObject method.
Return value Description
EmbeddedObject The object, if found. Otherwise, returns null.

Usage

If you modify the object returned by this method, the changes are saved but the rendering of the object in the NotesDomino document is not updated until you manually activate the object.