---
schema_version: "1"
id: ebd5e5b7ffebdf91719156bc2bdd16644be5a63dc16e699d4a375cc63ffc05fb
title: NoteAndAttachment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_noteandattachment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_noteandattachment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f01151e991ed918e5a6580a609f7621615b319557e654d9edf2ffea767dd1d57
description: This read-only object contains all notes and attachments associated with an object.
---
# NoteAndAttachment

This read-only object contains all notes and attachments associated with an object.

## Supported Calls

describeSObjects()

## Fields

| Field | Details |
| --- | --- |
| IsDeleted | 
Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is **Deleted**.



 |
| IsNote | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the object contains a note (true) or an attachment (false).



 |
| IsPrivate | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API. Note that if a regular user who does not have “Modify All Data” permission sets this field to true on a note that they do not own, then they can no longer query, delete, or update that note. Label is **Private**.



 |
| OwnerId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the user who owns the note and attachment.

This is a relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

User



 |
| ParentId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the parent object.

This is a polymorphic relationship field.

Relationship Name

Parent

Relationship Type

Lookup

Refers To

Account, Accreditation, AssessmentIndicatorDefinition, AssessmentTask, AssessmentTaskContentDocument, AssessmentTaskDefinition, AssessmentTaskOrder, Asset, Award, BoardCertification, BusinessLicense, BusinessMilestone, BusinessProfile, CareBarrier, CareBarrierDeterminant, CareBarrierType, CareDeterminant, CareDeterminantType, CareDiagnosis, CareMetricTarget, CareObservationComponent, CarePgmProvHealthcareProvider, CareProgram, CareProgramCampaign, CareProgramEligibilityRule, CareProgramEnrollee, CareProgramEnrolleeProduct, CareProgramEnrollmentCard, CareProgramGoal, CareProgramProduct, CareProgramProvider, CareProgramTeamMember, CareProviderAdverseAction, CareProviderFacilitySpecialty, CareRegisteredDevice, CareRequest, CareRequestDrug, CareRequestExtension, CareRequestItem, CareSpecialty, CareTaxonomy, CommSubscription, CommSubscriptionChannelType, CommSubscriptionConsent, CommSubscriptionTiming, Contact, Contract, CreditMemo, DelegatedAccount, EngagementChannelType, EnrollmentEligibilityCriteria, HealthcareFacility, HealthcareFacilityNetwork, HealthcarePayerNetwork, HealthcarePractitionerFacility, HealthcareProvider, HealthcareProviderNpi, HealthcareProviderSpecialty, HealthcareProviderTaxonomy, IdentityDocument, Image, IndividualApplication, Invoice, Lead, Location, MemberPlan, Opportunity, Order, OtherComponentTask, PersonEducation, PersonLifeEvent, Product2, ProductRequest, ProductRequestLineItem, PurchaserPlan, ReceivedDocument, ServiceAppointment, ServiceResource, Shift, SocialPost, Visit, VisitedParty, Visitor, VolunteerProject, WorkOrder, WorkOrderLineItem



 |
| Title | 

Type

string

Properties

Filter, Nillable, Group, Sort

Description

Title of the note.



 |

## Usage

Use this object to list all notes and attachments for an object.

To retrieve notes and attachments, issue a describe call on an object, which returns a query result for each activity since the record was created. You can’t directly query this object.

#### See Also

- [Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_note.htm "Represents a note, which is text associated with a custom object or a standard object, such as a Contact, Contract, or Opportunity.")
- [Attachment](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_attachment.htm "Represents a file that a User has uploaded and attached to a parent object.")