Apex

CloudFiles Client

CloudFiles exposes an Apex class named cldfs.Client. This class has all the CloudFIles functions exposed in apex. In this article, we documents all these functions.

To use these functons or other apex types, please prefix by CloudFiles namespace cldfs. For example - cldfs.createFolders(...)

1

Create Folders - Creates folders in external storage like SharePoint, Google Drive etc.

2

Create Folders Async - Creates folders in external storage like SharePoint, Google Drive etc. This method runs asynchronously.

3

Copy Salesforce Files - Use this function to copy Salesforce files to external storage. This function queue the files to be copied to externals torage. The queue is processed at a dynamic rate based on external library.

4

Create Attachments - Attachments are a way to connect files & folders to a Salesforce record. When a file/folder is attached to the record, it's visible in the CloudFiles widget places on the record page. This method can be used to create attachments

5

Delete Attachment - This method can be used to disconnect a file/folder from a Salesforce record. CloudFiles "connects" a file/folder to a Salesforce record by creating a "attachment" object. This method deletes the attachment

6

Create Links - Create CloudFiles Link(s)

7

Get Folder Contents - Gets contents of the folders stored in external storage like SharePoint, Google Drive etc.

8

Update Resources - Update resources(file/folders). This function can be used to update resource properties like name, description etc.

9

Move Resources - Move resources(files/folders). This function can be used to move resources to a different folder

10

Copy Resources - Copy resources(files/folders). This function can be used to copy resources to a different folder