Renders a note.
Protected Member Functions | |
_render ($note) | |
Renders a note. More... | |
_renderStub ($note) | |
Renders a note stub. More... | |
|
protected |
Renders a note.
Notes appear in the "notes" array for Accounts, Contacts, and Leads, and a single note may appear in the "logNote" key for an Activity. The entity that this note belongs to will be available under the "lead", "account", or "contact" key as a stub.
A note can contain any number of "mentions", which are references to other entities in Nutshell using the syntax @[entityType:id]
, e.g. @[Accounts:100]
. To include a literal string in the format @[something:here]
, escape the ampersand with a forward slash, e.g. \@[Accounts:100]
. Leads can also be mentioned using Lead-id
or Lead-number
.
If a note contains any mentions, the "mentions" array will contain the stubs corresponding to each mention in the order that they appear. Also, the "note" string will have each mention replaced by the name of the corresponding entity.
The files array is not present at all if there are no files attached to the note.
|
protected |
Renders a note stub.
Notes appear in the "notes" array for Accounts, Contacts, and Leads; and a single note may appear in the "logNote" key for an Activity.
The files array is not present at all if there are no files attached to the note.