AttachmentFields object
An AttachmentFields object represents all of the attachment fields in a record.
AttachmentFields is a collection object and is a container for a set of AttachmentField objects. The AttachmentFields object's property and methods tell you how many items are in the collection and let you retrieve individual items. You cannot programmatically change the number of attachment fields that the record type specifies. (The DevOps Plan administrator creates these fields using DevOps Plan Designer.) However, you can add or remove individual attached files using the methods of the Attachments Object.
Every Entity Object has
exactly one AttachmentFields object. You cannot explicitly create
an AttachmentFields object. However, you can retrieve a pre-existing
AttachmentFields object from a given Entity object by invoking the
Entity's AttachmentFields.