function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gcohengcohen 

Notes and Attachments Field with Custom Objects

Hi-

I'm kinda new to Salesforce development, and I was wondering if anyone could help me with this question.

An Account can have many foo objects; a foo object can have many "Notes & Attachments" fields/objects in it.

This foo object is a custom object.  I'm under the assumption that "Notes & Attachments" are native objects in SalesForce.

Stricltly via the Web Services APEX API, I'm writing an application, which pulls in all Accounts.  Once all Accounts are pulled, it pulls all foo objects from that account.  Next, I'm trying to loop through all "Notes & Attachments" within a foo, but I'm running into a problem here; I cant identify "Notes & Attachments" as a field, or even as a seperate table, within the SalesForce schema.

When I do a describeObjects web service call against the foo object, I don't seem to get back any info on this "Notes & Attachments" field.

I need to know:

1. Is "Notes & Attachments" a native object.
2. If so, whats its API name so I can query against it.
3. How would I find out #1 in the future for other objects.

thanks,
geremy

gcohengcohen
I must have missed it in the reference guide.  I found it as NoteAndAttachment.

thanks,
geremy
jotr408jotr408

I created an email template that populates fields from my custom object, so what is the api name to pull from my custom object "support__c"?