Fields

Output fields
ParameterDescription
ParentId
String
Id of the record the files were attached to.
ParentType
String
Object type (API name) of the parent record.
ContentDocumentIds
List<Id>
Ids of the ContentDocument records attached.
Files The attached files. SalesforceFile is a custom Apex type; see the supported constructor below.

Constructors

SalesforceFile(
  Id fileId, //contentDocumentId
  String Name,
  String extension,
  Integer fileSize
)