copyItemToDocument (NotesItem - JavaScript)

Copies an item to a specified document.

Defined in

NotesItem

Syntax

copyItemToDocument(doc:NotesDocument) : NotesItem

copyItemToDocument(doc:NotesDocument, newname:string) : NotesItem

Parameter Description
doc The document on which to create the item. Cannot be null.
newname The name of the new item. Specify an empty string ("") if you want to keep the name of the original item.
Return value Description
NotesItem The new item.

Usage

When you call this method using a RichTextItem object, file attachments, embedded objects, and object links that are contained within the rich-text item are not copied to the destination document.