Apex

Types

Apex Types defined by CloudFiles-

1

Attachment - An attachment represents a relation between a Salesforce record and a file/folder.

2

ContentVersionCreated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the content-version-created platform event type

3

ContentVersionCreatedBatch - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the content-version-created-batch platform event type.

4

Dataroom - This custom apex type represents an output that Create Datarooms method returns.

5

DocGen Params - This is a custom apex type that represents inputs needed for Types.DocGenRequestInput.

6

DocumentGenerated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the document-generated platform event type.

7

DocumentProcessed - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the document-processed platform event type.

8

DocumentProcessedError - This custom apex type represents an output that ErrorEvent method returns and includes the following fields: String Context, Resource , and File.

9

DocumentSplit - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the document-split platform event type.

10

ErrorEvent - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the error-event platform event type.

11

Event - Event is a container type for all types of CloudFiles events. It is returned as output of Get Event Details.

12

FileReceived - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the file-received platform event type.

13

FileReplace - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the file-replaced platform event type.

14

FileRequest - This custom apex type represents an output that Create File Requests method returns.

15

FileUpload - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the file-uploaded platform event type.

16

FileViewed - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the file-viewed platform event type.

17

FolderCreated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the folder-created platform event type.

18

Generated Document - This custom apex type represents an output that Generate Document (Sync) method returns.

19

Input & Output Types - When using CloudFiles Apex Client, you would need various input and output types.

20

Link - CloudFiles links are a way to share files, folders & datarooms externally(outside Salesforce). CloudFiles links provide multiple security settings, a branded viewer(whitelabelling supported), and gives engagement analytics.

21

Resource - A resource represents a file or a folder in external storage.

22

ResourceAttached - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the resource-attached platform event type.

23

ResourceCloned - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the resource-cloned platform event type.

24

ResourceDeleted - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the resource-deleted platform evet type.

25

ResourceUpdated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the resource-updated platform event type.

26

Resource List - Represents the contents of a folder, with pagination support.

27

SalesforceFilesAttached - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the salesforce-file-attached platform event type.

28

SalesforceFileCopied - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the salesforce-file-copied platform event type.

29

SalesforceFileCopiedError - This custom apex type represents the output returned by the Error Event method and includes the following fields: String RecordId, String ContentVersionId, Resource Destination.

30

Salesforce File - This object represents a Salesforce file.