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(...)
Create Folders - Creates folders in external storage like SharePoint, Google Drive etc.
Create Folders Async - Creates folders in external storage like SharePoint, Google Drive etc. This method runs asynchronously.
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.
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
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
Create Links - Create CloudFiles Link(s)
Get Folder Contents - Gets contents of the folders stored in external storage like SharePoint, Google Drive etc.
Update Resources - Update resources(file/folders). This function can be used to update resource properties like name, description etc.
Move Resources - Move resources(files/folders). This function can be used to move resources to a different folder
Copy Resources - Copy resources(files/folders). This function can be used to copy resources to a different folder