Notes.save (Method)

Saves a note for a page or image.

Returns:

NoteID (integer)

Arguments:

Name Type Required Description
objectID PageIDImageIDMultimediaID Required A CommonSpot pageID as saved in sitepages table.
elementID ControlID_0 Required An element's control ID. If this value is 0, CommonSpot applies the note to the page instead of an element on the current page.
noteID NoteID_0 Required The note's ID.
note PlainText_NonNull_2000 Required The note's text.
isPrivate Boolean Required A Boolean flag which when set to true indicates that a note is private.

Context:

License Requirements None
Permission Requirements Content:Author
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

Code Error Message
76001 You cannot set the note as private since it was created by another user.
76003 The specified element does not exist on the specified page.
76004 The specified note is not assigned to the specified object.
76005 The specified note is not assigned to the specified object or element.
76006 You cannot edit another user's private note.
76008 You cannot add notes to a base templates.

Notes:

None