Body |
- Type
- base64
- Properties
- Create, Update
- Description
- Required. Encoded file data.
|
BodyLength |
- Type
- int
- Properties
- Filter, Group,
Nillable, Sort
- Description
- Size of the file (in bytes).
|
ConnectionReceivedId |
- Type
- reference
- Properties
- Filter, Nillable
- Description
- ID of the PartnerNetworkConnection that shared this record with your organization.
This field is available if you enabled Salesforce to Salesforce.
|
ConnectionSentId |
- Type
- reference
- Properties
- Filter, Nillable
- Description
- ID of the PartnerNetworkConnection that you shared this record with. This field is
available if you enabled Salesforce to Salesforce. This field is supported using API versions
earlier than 15.0. In all other API versions, this
field’s value is null. You can use the new PartnerNetworkRecordConnection object to forward records to
connections.
|
ContentType |
- Type
- string
- Properties
- Create, Filter, Group,
Nillable, Sort, Update
- Description
- The content type of the attachment.
If the Don't allow HTML uploads as attachments
or document records security setting is enabled for your
organization, you cannot upload files with the following file extensions:
.htm, .html,
.htt, .htx,
.mhtm, .mhtml,
.shtm, .shtml,
.acgi, .svg.
|
Description |
- Type
- textarea
- Properties
- Create, Filter, Nillable, Sort, Update
- Description
- Description of the attachment. Maximum size is 500 characters. This field is available
in API version 18.0 and later.
|
IsEncrypted |

Note
This information is about Shield Platform Encryption and not Classic Encryption.
- Type
- boolean
- Properties
- Defaulted on create, Filter, Group,
Sort
- Description
- Indicates whether the attachment is encrypted using Shield Platform Encryption (true) or not (false).
This field is available in API version 34.0 and later.
|
IsPartnerShared |
- Type
- boolean
- Properties
- Defaulted on create, Filter, Update
- Description
- Indicates whether this record is shared with a connection using Salesforce to Salesforce. Label is Is
Shared With Partner.
|
IsPrivate |
- Type
- boolean
- Properties
- Create, Defaulted on create, Filter, Group,
Sort,
Update
- Description
- Indicates whether this record is viewable only by the owner and administrators
(true) or viewable by all otherwise-allowed users
(false). During a create or update call, it is
possible to mark an Attachment record as private even if you are not the owner. This can result in a situation in
which you can no longer access the record that you just inserted or updated. Label is
Private.
Attachments on tasks or events can't be
marked private.
|
Name |
- Type
- string
- Properties
- Create, Filter, Group,
Sort,
Update
- Description
- Required. Name of the attached file. Maximum size is 255 characters. Label is File
Name.
|
OwnerId |
- Type
- reference
- Properties
- Create, Defaulted on create, Filter, Group,
Sort,
Update
- Description
- ID of the User
who owns the attachment. This field was required previous to release 9.0. Beginning with
release 9.0, it can be null on create.
The owner of an
attachment on a task or event must be the same as the owner of the task or
event.
|
ParentId |
- Type
- reference
- Properties
- Create, Filter, Group,
Sort
- Description
- Required. ID of the parent object of the attachment. The following objects are
supported as parents of attachments:
- Account
- Asset
- Campaign
- Case
- Contact
- Contract
- Custom objects
- EmailMessage
- EmailTemplate
- Event
- Lead
- Opportunity
- Product2
- Solution
- Task
|