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( ) add to dataroom docid\ jxhxfpsmc9qu2cfcikpss this function is used to add content to a dataroom create attachments docid\ yvh dhtsakkluksjr t7y this method can be used to create attachments using apex create content version batch docid\ yzm pvasnxfq8goutmsbc this method will create content versions of a batch of files in salesforce using apex create datarooms docid 2cb1yos1gnszz97jeaf1n this function is used to create datarooms create file connect files docid 5uqdyd1a3borhbca 8mt8 this apex action enables programmatic creation of a salesforce files connect object for files stored in external cloud storage platforms create file requests docid\ qnzsg66cry9bakeqcjiym this function is used to receive files from customers create folders docid\ y mvh2exvakp9stgqzvcc this function creates folders in external storage like sharepoint, google drive etc create folders async docid\ sxlgxfht1jvjwbhgy3piq this function c reates folders in external storage like sharepoint, google drive etc this method runs asynchronously create links docid\ sreco10qovwtthndtraua this methond is used to create cloudfiles link docid\ ruyegmb59ipabacotpnuf (s) create microsoft team docid\ yzuycyx1nmx0ksqapnvri this method action allows users to automatically create a microsoft team from salesforce create salesforce file docid\ klof7v ulvpl8qstvcfhi this action lets you copy a file from external storage into salesforce as a native salesforce file by using file metadata to fetch the file and makes it easily accessible and manageable within salesforce create sharepoint drive docid\ ethzj6yavtxenax17itpn this method action allows users to create a new sharepoint drive directly from salesforce before we dive in, we assume you have reviewed the respective flow action create sharepoint site docid\ raynk8o2wot30kfodau f this method action allows users to create a new sharepoint sites directly from salesforce using apex copy resources docid\ u0sdy82h6ao keyfygwvi this function can be used to copy resources (files/folders) from one location to another within the same external storage drive copy salesforce files docid\ ekgov1lli3wwkebm4e8wg 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 delay docid\ qebo95cvpxsb632ylocsa this method can be used in apex to add a pause to the execution, especially in asynchronous processes delete attachment docid\ whj5ehhsbwlduvb6y0djt this method can be used to disconnect a file/folder from a salesforce record delete resource docid\ fqael68u00dtfoizjls y this function allows you to delete a resource (file or folder) in a connected external storage, such as sharepoint, google drive, dropbox, box, or aws s3 using apex generate document (sync) docid\ vktneanp6gwwjhelabz7n this function is used to execute generate document (sync) docid 9davjkiyvj2zfhjw7zcvx action using apex get attachments docid\ eb26zx4dgrfadxfzqvj35 this function is used to retrieve all resources (files or folders) connected to a record via apex get connected folder docid\ y6g95551 vo8h2fdw6ekc this method retrieves folder type attachments for a salesforce record, such as the account parent folder details, using apex get event details docid\ c2sr8lnyvsqbw2wvmpbfk this action can be used to get the details of a cloudfiles event using apex get files connect resource id docid\ uysn8ckhwgmv9wllzoo0w this action enables retrieval of a files connect resource id for a file or folder stored in external storage providers (e g , sharepoint, google drive, box) using apex get folder contents docid 4sr8c ztmzik1tydhlkvx this method is used to get contents of the folders stored in external storage like sharepoint, google drive etc get preview url docid\ tv6bosvuyf1iy4vxjnt 2 this function is used to get the preview url for a file using getpreviewurls method get salesforce files docid\ nqtlcumisji uguoz6ppq this method enables retrieval of ids of all salesforce files attached to a specific salesforce record merge documents (sync) docid\ vuqouupqifp6w933uyiuk this apex action allows you to combine multiple files—pdf, docx, png, or jpeg—into a single consolidated document directly through apex move resources docid\ a0hljik9qvglxlcjkn8ze this function can be used to move resources (files/folders) from one location to another within the same external storage drive process document using ai docid\ iaooty4jukyaw 4oq6syb this function is used to execute process document using ai docid 31ujx1ligtkwfkjuanbzt action using apex query document docid\ vikhtrntsyoxiohtbfn8h this function is used to execute query document docid\ dm3eh gzaocyoqd5y0r8d action using apex remove from community docid\ skrnr42lilh81ofvd4f7s this apex action lets you programmatically remove a file or folder’s sharing with experience cloud users, ensuring it is no longer accessible via salesforce records or cloudfiles widgets search by resource metadata docid\ aiziaoyhne63xizg gjq4 this function is a specialised feature designed for use with sharepoint and ms teams, focusing on custom properties that allows users to efficiently search and manage resources(files & folders) by tags (metadata columns) using apex set resource property docid 0zoopbzobe0czqmm6spsf this method updates the resource metadata information using apex share with community user docid\ zognbkhddt mdpaxjaa6d this apex action enables explicit sharing of resources with experience cloud pages or directly with users/groups via the content library widget using apex split document docid\ songzleulyvhkshw2gdrw this apex action allows you to intelligently split documents within salesforce update link settings docid\ dpqwqyyt6mpmxyjx8a rv this apex method allows you to programmatically manage and modify the security policies associated with cloudfiles links update permissions docid\ akbuxu09yllymvqoxa2at this function is used to provide/revoke permissions for the files/folders in the external storage update resources docid kg0 yjfb4g2hqmn9zsec this function can be used to update resource (file or folder) properties like name, description etc