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(...)
Get Preview URL - This function is used to get the preview url for a file using getPreviewUrls method.
Get Attachments - This function is used to retrieve all resources (files or folders) connected to a record via apex.
Query Document - This function is used to execute Query Document action using Apex.
Process Document using AI - This function is used to execute Process Document using AI action using Apex.
Create Folders - This function creates folders in external storage like SharePoint, Google Drive etc.
Create Folders Async - This function creates folders in external storage like SharePoint, Google Drive etc. This method runs asynchronously.
Copy Salesforce Files - This function is used to copy Salesforce files to external storage by queuing them, with the queue processed at a dynamic rate based on the external library.
Update Permissions - This function is used to provide/revoke permissions for the files/folders in the external storage.
Create Attachments - This method can be used to create attachments using Apex.
Delete Attachment - This method can be used to disconnect a file/folder from a Salesforce record.
Create Links - This methond is used to create CloudFiles Link(s).
Get Folder Contents - This method is used to get contents of the folders stored in external storage like SharePoint, Google Drive etc.
Update Resources - This function can be used to update resource (file or folder) properties like name, description etc.
Move Resources - This function can be used to move resources (files/folders) from one location to another within the same external storage drive.
Copy Resources - This function can be used to copy resources (files/folders) from one location to another within the same external storage drive.
Create Datarooms - This function is used to create datarooms.
Create File Requests - This function is used to receive files from customers.
Add To Dataroom - This function is used to add content to a dataroom.
Generate Document (Sync) - This function is used to execute Generate Document (Sync) action using Apex.