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 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) 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 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 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 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 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 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