Add note
civicrm_add_noteAttach free-text notes to contacts, contributions, activities, cases, or relationships in CiviCRM. Use for unstructured context that does not belong in custom fields.
Instructions
Attach a free-text Note to a contact, contribution, activity, case, or relationship. Requires CIVICRM_ALLOW_WRITES=true. Notes are the right place for unstructured context that doesn't belong in a custom field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Free-text note body. Plain text or HTML. | |
| entity | No | Entity the note attaches to. CiviCRM's Note table supports contacts plus several other entity tables. | Contact |
| privacy | No | Visibility flag stored on the note record. | public |
| subject | No | Short subject line (≤255 chars). | |
| entity_id | Yes | Id of the entity the note is about. |