Newer Version Available

This content describes an older version of this product. View Latest

ContentNote

Represents a note in Salesforce. This object is available in API version 32.0 and later.

Supported Calls

create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), update(), upsert()

Special Access Rules

  • Notes must be enabled.
  • Chatter must be enabled.

Fields

Field Details
Content
Type
base64
Properties
Create, Nillable, Update
Description
The content or body of the note. This can include HTML or plain text.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the note in bytes.
CreatedById
Type
reference
Properties
Defaulted on createFilter, Group, Sort
Description
ID of the user who created the note.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date the note was created.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the note.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of file for the note. All notes have a file type of SNOTE.
Id
Type
id
Properties
Defaulted on createFilter, Group, Nillable, Sort
Description
ID of the note.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the note has been deleted.
IsReadOnly
Type
boolean
Properties
Defaulted on create, Group, Sort
Description
Indicates whether the note is read only.
LastModifiedById
Type
reference
Properties
Defaulted on create, Filter, Group, Sort
Description
The ID of the user who last modified the note.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date the note was last modified. Updates when the Title or Content of the note are updated.
OwnerId
Type
reference
Properties
Filter, Group, , Sort
Description
ID of the owner of the note.
Title
Type
string
Properties
Create, Filter, Group, idLookup, Namefield, Sort, Update
Description
Title of the note.

Usage

  • Use ContentNote to create, query, retrieve, search, edit, and update notes.
  • ContentNote is built on ContentVersion, and so it has many of the same usages.
  • Not all fields can be set for notes. Only the Content and Title fields can be updated.
  • The maximum file size you can upload via the SOAP API must be less than 50 MB. When a document is uploaded or downloaded via the API, it is converted to base64. This conversion increases the document size by approximately 37%. You must account for the base64 conversion increase so that the file you plan to upload is less than 50 MB.
  • SOQL and SOSL queries on the ContentNote return only the most recent version of the note.