# Class Note

- [TopLevel.Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)
  - [dw.object.Note](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.Note.md)

Represents a note that can be attached to any persistent object
that supports this feature.

## Property Summary

| Property                                                                                                                    | Description                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [createdBy](#createdby): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`   | Return the login ID of user that is stored in the session at the time  the note is created. |
| [creationDate](#creationdate): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)` | Return the date and time that the note was created.                                         |
| [subject](#subject): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`       | Return the subject of the note.                                                             |
| [text](#text): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`             | Return the text of the note.                                                                |

## Constructor Summary

This class does not have a constructor, so you cannot create it directly.

## Method Summary

| Method                                                                                                       | Description                                                                                 |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| [getCreatedBy](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.Note.md#getcreatedby)()       | Return the login ID of user that is stored in the session at the time  the note is created. |
| [getCreationDate](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.Note.md#getcreationdate)() | Return the date and time that the note was created.                                         |
| [getSubject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.Note.md#getsubject)()           | Return the subject of the note.                                                             |
| [getText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.Note.md#gettext)()                 | Return the text of the note.                                                                |

### Methods inherited from class Object

[assign](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#assignobject-object), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject-object), [defineProperties](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertiesobject-object), [defineProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertyobject-object-object), [entries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#entriesobject), [freeze](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#freezeobject), [fromEntries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#hasownpropertystring), [is](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isobject-object), [isExtensible](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isextensibleobject), [isFrozen](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isfrozenobject), [isPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isprototypeofobject), [isSealed](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#issealedobject), [keys](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#keysobject), [preventExtensions](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#propertyisenumerablestring), [seal](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#sealobject), [setPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tolocalestring), [toString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tostring), [valueOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valueof), [values](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valuesobject)

## Property Details

### createdBy

- createdBy: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Return the login ID of user that is stored in the session at the time
    the note is created.

***

### creationDate

- creationDate: [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)`
  - : Return the date and time that the note was created.  This is usually
    set by the system, but may be specified if the note is generated
    via an import.

***

### subject

- subject: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Return the subject of the note.

***

### text

- text: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Return the text of the note.

***

## Method Details

### getCreatedBy()

- getCreatedBy(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Return the login ID of user that is stored in the session at the time
    the note is created.

    **Returns:**

    - the username.

***

### getCreationDate()

- getCreationDate(): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md)
  - : Return the date and time that the note was created.  This is usually
    set by the system, but may be specified if the note is generated
    via an import.

    **Returns:**

    - the creation date.

***

### getSubject()

- getSubject(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Return the subject of the note.

    **Returns:**

    - the subject.

***

### getText()

- getText(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Return the text of the note.

    **Returns:**

    - the text.

***
